2022이전/etc

firebase Oauth 오류

바로퇴장 2020. 2. 15. 17:13
[debug] [2020-02-15T08:04:41.053Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2020-02-15T08:04:41.054Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token  
 <request body omitted>
[debug] [2020-02-15T08:04:41.587Z] <<< HTTP RESPONSE 400
[debug] [2020-02-15T08:04:41.588Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects?pageSize=100  
 
[debug] [2020-02-15T08:04:42.518Z] <<< HTTP RESPONSE 401
[debug] [2020-02-15T08:04:42.519Z] <<< HTTP RESPONSE BODY
[debug] [2020-02-15T08:04:42.520Z] HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
[debug] [2020-02-15T08:04:42.974Z] FirebaseError: HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

뜨면 계정 토큰오류다

그래서 간단하게 

firebase logout
firebase login

하면 간단하게 해결할 수 있다......

debug를 끝까지 읽어보는 습관을 들이자.... 왜 난 이걸 2시간 씩이나 헤맷을까....