gotrue 1.5.4 gotrue: ^1.5.4 copied to clipboard
A dart client library for the GoTrue API.
[1.5.4] #
- fix: lower the version of
meta
to v1.7.0 to match the requirement for Flutter 2.8.0
[1.5.1] #
- fix: downgrade
meta
to support minimum Flutter version.
[1.5.0] #
- feat: add support for
signInWithIdToken
.
[1.4.1] #
- fix: downgrade minimum
collection
version to support wider range of Flutter SDK versions
[1.4.0] #
- feat: add support for MFA
Read more about MFA with Supabase here// Start the enrollment process for a new Multi-Factor Authentication (MFA) factor final res = await client.mfa .enroll(issuer: 'MyFriend', friendlyName: 'MyFriendName'); // Prepares a challenge used to verify that a user has access to a MFA factor. final res = await client.mfa.challenge(factorId: factorId1); // Verifies a code against a challenge. final res = await client.mfa .verify(factorId: factorId1, challengeId: challengeId, code: getTOTP());
[1.3.0] #
- feat: paginate
admin.listUsers()
auth.admin.listUsers(page: 2, perPage: 10);
[1.1.0] #
- fix: redirect_to double URL encoding issue #102
- fix: avoid positive lookbehind in snake case extension (#100)
- fix: reset token retry count on session remove #98
- feat: fail to getSessionFromUrl throws error on onAuthStateChange #99
supabase.onAuthStateChange.listen((data) { // handle auth state change here }, onError: (error) { // handle error here });
[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');
onAuthStateChange
is 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
GotrueError
toGoTrueException
[1.0.0-dev.1] #
[0.2.2] #
- fix:
OpenIDConnectCredentials
'snonce
parameter 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
toString
method toGotrueError
class
[0.1.4] #
- fix: trigger signedIn event on recoverSession
[0.1.3] #
- feat: add
tokenRefreshed
auth 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-Info
header
[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.