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

Subscribe to token change events? #14

Closed
gazzer82 opened this issue Apr 15, 2020 · 1 comment
Closed

Subscribe to token change events? #14

gazzer82 opened this issue Apr 15, 2020 · 1 comment

Comments

@gazzer82
Copy link

I am using this in an iOS app, and need to be updated when the token is refreshed.

I see there are the GAppAuth.shared.stateChangeCallback and GAppAuth.shared.errorCallback, but I can't quit work out how to use them.

Does anyone have any pointers?

Thanks

Gareth

@elsesiy
Copy link
Owner

elsesiy commented Dec 23, 2020

@gazzer82 These are standard swift callbacks e.g.

GAppAuth.shared.stateChangeCallback = { state -> Void in
    
}

GAppAuth.shared.errorCallback = { state, err -> Void in
    
}

Please let me know if this doesn't answer the question, thanks!

@elsesiy elsesiy closed this as completed Dec 23, 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