GoTrue: Custom access token hook: Include current OAuth provider type #21935
Unanswered
bnjmnt4n
asked this question in
Feature Requests
Replies: 1 comment
|
The docs claim there's a What we ended up using was querying IF v_auth_method = 'oauth' THEN
SELECT i.provider INTO v_oauth_provider
FROM auth.identities i
WHERE i.user_id = v_user_id
AND i.provider IN ('google', 'apple')
ORDER BY i.last_sign_in_at DESC NULLS LAST
LIMIT 1;
END IF;But this would definitely be nice to have in the hook payload directly. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'd like to use the new Auth Hooks to customize some aspects of the login behavior based on the OAuth provider type used to sign in, via the custom access token hook. However, the access token hook doesn't provide any details about the current OAuth provider.
All reactions