Skip to content

Commit

Permalink
fix: sign out on already used refresh token (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Nov 30, 2023
1 parent ff8de40 commit 72ffb9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gotrue/lib/src/gotrue_client.dart
Expand Up @@ -981,7 +981,7 @@ class GoTrueClient {
rethrow;
} catch (error, stack) {
if (error is AuthException) {
if (error.message == 'Invalid Refresh Token: Refresh Token Not Found') {
if (error.message.startsWith('Invalid Refresh Token:')) {
await signOut();
}
}
Expand Down

0 comments on commit 72ffb9e

Please sign in to comment.