Skip to content

Commit

Permalink
refactor: LoginActivity.kt code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ofzlo committed Sep 6, 2022
1 parent 533e248 commit 4f93224
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .idea/Sooktoring-Android.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class LoginActivity : AppCompatActivity() {
.requestIdToken("1086906219784-oter9rrh7k6bhffeihdpk6l1id1u26c8.apps.googleusercontent.com")
.requestEmail()
.build()

val mGoogleSignInClient = GoogleSignIn.getClient(this, gso)

GoogleSignResultLauncher = registerForActivityResult(
Expand All @@ -55,6 +56,7 @@ class LoginActivity : AppCompatActivity() {
var signIntent: Intent = mGoogleSignInClient.getSignInIntent()
GoogleSignResultLauncher.launch(signIntent)
}

}


Expand All @@ -68,6 +70,7 @@ class LoginActivity : AppCompatActivity() {
val googletoken = account?.idToken.toString()

postJWTtoken(googletoken)
val authCode = account.serverAuthCode.toString()


// 로그인 성공시 메인으으로 이동
Expand Down

0 comments on commit 4f93224

Please sign in to comment.