gotrue 1.0.2
gotrue: ^1.0.2 copied to clipboard
A dart client library for the GoTrue API.
1.0.2 #
1.0.0 #
- chore: v1.0.0 release 🚀
- BREAKING: update the public API to match JS library (#90)
signUp()now uses named parameters
// Before final res = await supabase.auth.signUp('example@email.com', 'password'); // After final res = await supabase.auth.signUp(email: 'example@email.com', password: 'password');signIn()is split into different methods
// Magic link signin // Before final res = await supabase.auth.signIn(email: 'example@email.com'); // After final res = await supabase.auth.signInWithOtp(email: 'example@email.com'); // Email and password signin // Before final res = await supabase.auth.signIn(email: 'example@email.com', password: 'password'); // After final res = await supabase.auth.signInWithPassword(email: 'example@email.com', password: 'password');onAuthStateChangeis now a stream
// Before supabase.auth.onAuthStateChange((event, session) { // ... }); // After final subscription = supabase.auth.onAuthStateChange().listen((data) { final AuthChangeEvent event = data.event; final Session? session = data.session; }); // Don't forget to cancel the subscription when you're done subscription.cancel();update()is renamed toupdateUser()
// Before final res = await supabase.auth.update( UserAttributes( email: 'new@email.com', data: { 'username': 'new_username', }, ), ); // After final res = await supabase.auth.updateUser( UserAttributes( email: 'new@email.com', data: { 'username': 'new_username', }, ), );
1.0.0-dev.3 #
1.0.0-dev.2 #
- BREAKING: rename
GotrueErrortoGoTrueException
1.0.0-dev.1 #
0.2.2 #
- fix:
OpenIDConnectCredentials'snonceparameter optional - fix: use completer in the retry logic to return value when token refresh is complete(#75)
0.2.1 #
0.2.0 #
0.1.6 #
0.1.5 #
- feat: add
toStringmethod toGotrueErrorclass
0.1.4 #
- fix: trigger signedIn event on recoverSession
0.1.3 #
- feat: add
tokenRefreshedauth event - feat: add slack, spotify and twitch Auth providers
- fix: update currentSession.user when GoTrueClient.update is called
- chore: export missing types
0.1.2 #
- feat:
setAuth()method for setting the session with a provided jwt - fix: improve client tests
0.1.1 #
- chore: add
X-Client-Infoheader
0.1.0 #
- feat: add support for phone auth
0.0.7 #
- fix: stop refreshToken timer on session removed
- fix: close http.Client on request done
- chore: update External OAuth Providers
- chore: add example code block
0.0.6 #
- fix: export gotrue_response classes
0.0.5 #
- BREAKING CHANGE: rename 'ProviderOptions' to 'AuthOptions'
- feat: support redirectTo option
- fix: handle jwt expiry less than 60 seconds
0.0.4 #
- fix: session refresh timer
0.0.3 #
- fix: wrong timestamp value
0.0.2 #
- fix: persistSessionString with wrong expiresAt
0.0.1 #
- fix: URL encode redirectTo
0.0.1-dev.11 #
- fix: parsing provider callback url with fragment #12
0.0.1-dev.10 #
- fix: parses provider token and adds oauth scopes and redirectTo
- fix: expiresAt conversion to int and getUser resolving JSON
- fix: signOut method
0.0.1-dev.9 #
- fix: User nullable params
- fix: Session nullable params
- fix: lint errors
0.0.1-dev.8 #
- chore: Migrate to Null Safety
0.0.1-dev.7 #
- fix: Password and other attributes defaulting to email field.
- chore: export UserAttributes
0.0.1-dev.6 #
- chore: export Provider class
0.0.1-dev.5 #
- fix: updateUser bug
- fix: http success statusCode check
- fix: stateChangeEmitters uninitialized value
0.0.1-dev.4 #
- fix: email verification required on sign up
0.0.1-dev.3 #
- chore: export Session and User classes
0.0.1-dev.2 #
- fix: session and user parsing from json
- chore: method to get persistSessionString
0.0.1-dev.1 #
- Initial pre-release.