Skip to main content

Function: AuthSocialSignInCallback()

AuthSocialSignInCallback(props): Element

Defined in: react-auth-strapi/src/AuthSocialSignInCallback.tsx:90

Mount this at the redirect route configured in Strapi's provider settings (e.g. /connect/google/redirect). It reads the callback query string Strapi appended to the redirect, forwards it to ${apiUrl}/auth/:provider/callback, and authenticates the user with the resulting JWT — the same way Auth's onSignIn does for email/password.

Parameters​

ParameterType
propsAuthSocialSignInCallbackProps

Returns​

Element