go-pkgz / auth

Authenticator via oauth2, direct, email and telegram
https://go-pkgz.umputun.dev/auth/
MIT License
1.07k stars 84 forks source link

Is there a way to use the token after login? #188

Closed mKurrels closed 11 months ago

mKurrels commented 11 months ago

It would be nice to be able to use the google oauth2 token with the google api's. But as far as I can tell, the token gets discarded.

I have an application where the user logs in and gives permission to access their google drive. Both of those things happen at the same time, but since token gets discarded, I can't actually use the google api's to access the user's google drive.

mKurrels commented 11 months ago

never mind. I see you can use "BearerTokenHookFn" in "AddCustomProvider"