Skip to content

Commit

Permalink
[#1] Feat: 로그아웃 로직 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
cucumber99 committed Jun 29, 2024
1 parent 5961bc9 commit 43837ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/providers/auth_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ class AuthController with ChangeNotifier {
final String accessToken = data['data'];
log(accessToken.toString());
await storage.write(key: 'accessToken', value: accessToken);
}
else {
} else {
log('로그인 실패: ${response.statusCode}');
}

Expand All @@ -68,7 +67,7 @@ class AuthController with ChangeNotifier {
}

Future<void> logout() async {
//서버 로그아웃 로직 필요
await storage.deleteAll();
isLogin = false;
notifyListeners();
}
Expand Down

0 comments on commit 43837ed

Please sign in to comment.