{"blog_url":"https://blog.katsubemakito.net/","type":"rich","url":"https://blog.katsubemakito.net/firebase/firebase-authentication-logout","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.katsubemakito.net%2Ffirebase%2Ffirebase-authentication-logout\" title=\" [Firebase] Authentication\u3067\u30ed\u30b0\u30a2\u30a6\u30c8\u3092\u5b9f\u88c5 - \u306d\u3053\u306e\u8db3\u8de1R\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"katsube","author_url":"https://blog.hatena.ne.jp/katsube/","title":" [Firebase] Authentication\u3067\u30ed\u30b0\u30a2\u30a6\u30c8\u3092\u5b9f\u88c5","provider_name":"Hatena Blog","published":"2019-02-24 22:22:57","blog_title":"\u306d\u3053\u306e\u8db3\u8de1R","width":"100%","provider_url":"https://hatena.blog","categories":["Firebase","Authentication","\u30ed\u30b0\u30a2\u30a6\u30c8","\u30b5\u30a4\u30f3\u30a2\u30a6\u30c8"],"description":"\u4ee5\u524dAuthentication\u306b\u3088\u308b\u30ed\u30b0\u30a4\u30f3\u3092\u53d6\u308a\u4e0a\u3052\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u969b\u306b\u30ed\u30b0\u30a2\u30a6\u30c8(\u30b5\u30a4\u30f3\u30a2\u30a6\u30c8)\u51e6\u7406\u3092\u3059\u3063\u3071\u308a\u5fd8\u308c\u3066\u3044\u307e\u3057\u305f\uff57 \u7d50\u8ad6 \u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u4ee5\u4e0b\u306e\u901a\u308asignOut()\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u6210\u529f\u3057\u305f\u3089then()\u306e\u7b87\u6240\u306b\u597d\u304d\u306a\u51e6\u7406\u3092\u66f8\u3044\u3066\u3042\u3052\u307e\u3059\u3002 firebase.auth().onAuthStateChanged( (user) => { firebase.auth().signOut().then(()=>{ console.log(\"\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u307e\u3057\u305f\"); }) .catch( (error)=>{ console.log(`\u30ed\u30b0\u30a2\u30a6\u30c8\u6642\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f ($\u2026","version":"1.0","image_url":null,"height":"190"}