-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth: Add TS types for auth method options #7745
Conversation
16 replays were recorded for 880069a. 16 PassedrequireAuth graphql checks
|
I have integrated my Supabase v2 PR #7719 with this to test out the types -- which work great! This PR also adds tests for the Supabase auth integrations: password, otp/passwordless, id token, and sso. |
@Tobbe please have a quick review if my combining v2 and the auth types works for you. It was rather nice to write tests with all the proper types as it knew when my provider was missing -- or invalid. TODO: I am going to add docs for each of the methods similar to: https://supabase.com/docs/reference/javascript/auth-signinwithpassword |
Added docs to explain how to login with various methods. but, I just noticed there was no test or doc for sign up. Will add. |
878ade6
to
74b2a06
Compare
I moved the upgrade of Supabase to v2 back into #7719 |
Provide types for the auth method options, like
options
inlogIn(options)
andsignUp(options)
Users who were previously (probably unknowingly) passing unsupported parameters to
logIn
,signUp
and a few more methods will now see TS type errors when trying to build their code base, requiring them to fix their code.