Skip to content

Commit e62222a

Browse files
committed
fix: set refreshToken as '' in google login.
1 parent 8623eff commit e62222a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/data/repositories/user_repository_impl.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,10 @@ class UserRepositoryImpl implements UserRepository {
7878
final GoogleSignInAuthentication googleAuth =
7979
await googleUser.authentication;
8080
final String? idToken = googleAuth.idToken;
81-
final String? accessToken = googleAuth.accessToken;
8281
if (idToken != null) {
8382
final signInWithGoogleRequestModel = SignInWithGoogleRequestModel(
8483
idToken: idToken,
85-
refreshToken: accessToken ?? '',
84+
refreshToken: '',
8685
);
8786
await _tokenLocalDataSource.deleteToken();
8887
final result = await _authenticationRemoteDataSource

0 commit comments

Comments
 (0)