Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirection issue #12

Closed
awaismubeen opened this issue Jan 15, 2020 · 1 comment
Closed

Redirection issue #12

awaismubeen opened this issue Jan 15, 2020 · 1 comment

Comments

@awaismubeen
Copy link

when I try to login as
GAppAuth.shared.retrieveExistingAuthorizationState() if GAppAuth.shared.isAuthorized() { let authorization = GAppAuth.shared.getCurrentAuthorization() //self.updateUI(authorization) }else{ do{ try GAppAuth.shared.authorize(callback: { auth in print(auth) }) }catch{ print("error") } }
it leads to login page but after selecting the account it showd
Screen Shot 2020-01-15 at 6 26 33 PM
what could be gone wrong?

@elsesiy
Copy link
Owner

elsesiy commented Jan 26, 2020

@AwaisMobeen It looks like you didn't properly register the URL-scheme which is necessary for Safari to handle the redirect. Did you try the example project I provided? See here for the setup instructions and make sure you don't miss anything.

@elsesiy elsesiy closed this as completed Jan 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants