Consider exposing an auth token/client #946
shayneczyzewski
started this conversation in
Feature suggestions / feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This request came from a Discord DM with @maksim36ua
He would like to be able to make Google API calls on behalf of a Google-logged-in user against one of their APIs. Exe: https://developers.google.com/sheets/api/quickstart/nodejs This requires a
google.auth.OAuth2
client.In our current Passport implementation, we do get back an
accessToken
andrefreshToken
that we can probably store and turn into an Oauth2 client (or just use directly to make API calls): https://github.com/wasp-lang/wasp/blob/main/waspc/data/Generator/templates/server/src/routes/auth/passport/generic/provider.js#L11Let's consider a good way to store/expose this to enable this use case.
Beta Was this translation helpful? Give feedback.
All reactions