redirect-with-tokens
v1.0.0
Published
Parse the tokens from OAuth Providers and redirect to the original URL with the tokens as query parameters
Maintainers
Readme
directus-redirectWithToken
A Directus extension that enables to use cookie mode for OAUTH Providers by providing an endpoint redirect-with-tokens, which returns the access & refresh token as query parameters.
Usage
Make a link in your frontend like {PUBLIC_APIURL}/auth/login/google?redirect={PUBLIC_APIURL}/redirect-with-tokens?redirect={PUBLIC_URL}/auth/sso?tokens=. This becomes {PUBLIC_URL}/auth/sso?tokens=<accesstoken>,<refreshtoken>
