Module oauth2

Module oauth2 

Source

Structs§

AuthParams

Functions§

callback
Helper function to exchange the code for a token and then get the user profile then upsert the user and the session and set the token in a short live cookie
callback_jwt
Helper function to exchange the code for a token and then get the user profile then upsert the user and the session and set the token in a short live cookie
get_authorization_url
Helper function to get the authorization URL and save the CSRF token in the session
google_authorization_url
The authorization URL for the OAuth2 flow
google_callback_cookie
The callback URL for the OAuth2 flow
google_callback_jwt
The callback URL for the OAuth2 flow
protected
The protected URL for the OAuth2 flow This will return a message indicating that the user is protected