Add avatar menu logout
All checks were successful
Build and deploy Flutter Web / build (push) Successful in 2m10s
All checks were successful
Build and deploy Flutter Web / build (push) Successful in 2m10s
This commit is contained in:
@@ -37,6 +37,12 @@ void saveMapflowSessionToken(String token) {
|
||||
web.window.localStorage.setItem(mapflowSessionStorageKey, token);
|
||||
}
|
||||
|
||||
void clearMapflowSession() {
|
||||
web.window.localStorage.removeItem(mapflowSessionStorageKey);
|
||||
web.window.localStorage.removeItem(telegramLoginStorageKey);
|
||||
clearPendingTelegramLoginToken();
|
||||
}
|
||||
|
||||
void savePendingTelegramLoginToken(String token) {
|
||||
web.window.localStorage.setItem(pendingTelegramLoginStorageKey, token);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user