Closed knakamura13 closed 7 years ago
Hey @chuby1tubby -- is the google login page even appearing?
You most likely need to put this in the viewDidAppear
function.
Oh! I'm sorry I don't know why I didn't try that first. That made the login screen appear, so thank you.
Now, does the user have to input their login credentials every single time they open my app? Or can the Google account stay logged in indefinitely?
It's up to you for how you want to save the access token returned; Simplicity does not handle that for you. I would recommend saving it into the iOS Keychain.
In other apps, you might want to use the Google token to log into your own server, and save your server's token instead. In that case, you can do that however you want, too =]
Great. Thank you for that information! I'm super excited to use this in many apps in the future.
No problem! Glad we could help!
I called the function 'Simplicity.login(Google())' within my viewDidLoad() function in the ViewController.swift file.
I expected something to happen when I tried to print the accessToken within the function's scope, yet nothing happens when the code runs. There's no errors so I'd like to know what step I'm missing.
Thanks!