Firebase Auth With Kotlin
서버 개발 기간 단축을 위해 Firebase 를 이용하기로 했다.
제일 먼저 회원관리를 위한 auth 를 적용했다.
Firebase Auth 가이드 를 참조하면 매우 친절한 예제와 방법이 나와있다.
추가로 안드로이드 스튜디오에서도 바로 적용가능하다.
안드로이드 스튜디오 적용방법
1. menu -> tools -> Firebase 클릭
2. Authentication 확장 후 Email and password authentication 클릭
3. 이제 Firebase 계정과 연결해주자! Connect to Firebase 클릭!!!!
4. 프로젝트 정보 기입 후 적용하면 !!!! Firebase 프로젝트 생성 완료!!!! (빠름빠름빠름~)
5. 이제 소스상에서 Firebase 를 추가해주자. Accept Changes 클릭하면 자동 Build ~~
직접 문서보면서 추가하는 것보다는 훨씬 손쉽고 편하다.
문서보면서 최초 작성해보고 그 이후에는 스튜디오로 적용하는게 좋을거같다.
그리고 이제 초기 설정이 완료되었으면 코틀린을 이용해 auth 를 구현해보자!!!
아래 코드는 AAC 를 적용한 auth를 구현중인 코드이다
현재는 이메일 가입만 구현해놓았으며, 추후 기타 firebase 에서 지원하는 로그인 연동 방식을 구현할 예정이다.
https://gist.github.com/daeun1012/679602cd73bc3b0ad445ced94287fc26
여담으로... 스팀과 스팀달러가 올라 기분이 좋닿ㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎ
Congratulations @daeun9294, this post is the tenth most rewarded post (based on pending payouts) in the last 12 hours written by a Newbie account holder (accounts that hold between 0.01 and 0.1 Mega Vests). The total number of posts by newbie account holders during this period was 2987 and the total pending payments to posts in this category was $1161.97. To see the full list of highest paid posts across all accounts categories, click here.
If you do not wish to receive these messages in future, please reply stop to this comment.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @daeun9294! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Award for the number of upvotes
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @daeun9294! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Do not miss the last post from @steemitboard:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit