본문 바로가기
개발

구글 로그인 연동 firebase signin sdk 에러

by 제이콥 2020. 12. 25.

구글 로그인에서 에러가 난다면 

<DEVELOPER_ERROR>

sha1을 firebase에 등록해야합니다.

sha1는 총 3가지 디버깅용(개발용), 릴리즈용, 구글플레이용가 있습니다.

디버깅용

먼저 디버깅용 sha1를 받아봅니다.

keytool -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore

비밀번호는 android입니다.

developers.google.com/android/guides/client-auth

 

Authenticating Your Client  |  Android용 Google API  |  Google Developers

Certain Google Play services (such as Google Sign-in and App Invites) require you to provide the SHA-1 of your signing certificate so we can create an OAuth2 client and API key for your app. To get your SHA-1, follow the instructions to use Keytool or Grad

developers.google.com

릴리즈용

keytool -list -v -alias alias_name -keystore ./temp_keystore.keystore


발급 받은 sha1를 firebase 셋팅에서 등록해줘야지, 구글로그인할 때 에러가 안납니다.

'개발' 카테고리의 다른 글

eos 개발 관련 자료  (0) 2020.07.09
[React] nginx 배포과정 #1 이유  (0) 2020.05.19
[React] nginx에 배포하기  (0) 2020.05.19
[react-native] dev-server 없이 apk 만들기  (0) 2020.05.11
그누보드5 서버이전하기  (0) 2020.03.31

댓글