Where is the complete API Reference in Open-Saas documentation / project?

I'm trying to understanding more about how the authentication providers works in open-saas. Because I want to get the refresh token of my google auth so i can reuse it in my backend app to access other libraries. Do you guys have something documented about this? I tried
export const onAfterLogin: OnAfterLoginHook = async ({ providerId, user, oauth, req}) => {
export const onAfterLogin: OnAfterLoginHook = async ({ providerId, user, oauth, req}) => {
but in Oauth I've just access of the accessToken and not the refreshToken.
No description
2 Replies
kapa.ai
kapa.ai3w ago
Hi @Ramon Schmidt. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- In the Wasp documentation, there is a section dedicated to social authentication, including Google authentication. You can find the API reference for Google authentication here (https://wasp-lang.dev/docs/auth/social-auth/google#api-reference). This section explains how to implement the configFn and userSignupFields functions, which are key to setting up Google authentication. However, it doesn't specifically mention how to access the refresh token. The onAfterLogin hook you're using is the right place to handle additional logic after a user has logged in. However, if the oauth object only provides the accessToken and not the refreshToken, it might be that the Wasp framework doesn't currently support accessing the refresh token directly. For more detailed information or to request this feature, I recommend opening an issue on the Wasp Github repository (https://github.com/wasp-lang/wasp/issues). The Wasp team and community are very active there and should be able to provide more assistance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Ramon Schmidt, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
martinsos
martinsos3w ago
@Ramon Schmidt check this out, does this answer it? https://wasp-lang.dev/docs/auth/auth-hooks#refreshing-the-oauth-access-token Just to be clear, OpenSaas is poject starter / boilerplate for Wasp framework. So for most of the stuff, you will be wanting to look at the Wasp docs.
Want results from more Discord servers?
Add your server