public void DestroySession() { _localStorage.RemoveItem("isloggedin"); _isLoggedIn = false; _localStorage.RemoveItem("loginName"); _loginName = String.Empty; _localStorage.RemoveItem("emailAddress"); _emailAddress = String.Empty; _localStorage.RemoveItem("displayName"); _displayName = String.Empty; }
public async Task LogoutAsync() { await _localStorageService.RemoveItem("accessToken"); await _localStorageService.RemoveItem("refreshToken"); await _localStorageService.RemoveItem("email"); }
/// <inheritdoc/> public async Task Logout() { await _localStorage.RemoveItem(LocalStorageConstants.AuthData); await _localStorage.RemoveItem(LocalStorageConstants.AuthToken); ((ApiAuthenticationStateProvider)_authenticationStateProvider).MarkUserAsLoggedOut(); }
public async Task Logout() { Auth = null; await _localStorageService.RemoveItem("user"); await _localStorageService.RemoveItem("auth"); _navigationManager.NavigateTo("login"); }
public async Task Logout() { User = null; await _localStorageService.RemoveItem(StaticValues.BEARER); await _localStorageService.RemoveItem(StaticValues.USERLS); _navigationManager.NavigateTo("login"); }
public async Task Logout() { User = null; await _localStorageService.RemoveItem(_userKey); _navigationManager.NavigateTo("account/login"); }
public async Task Logout() { cliente = null; await _localStorageService.RemoveItem("Clientes"); _navigationManager.NavigateTo("login"); }
public async Task SignOutAsync() { User = null; await _localStorageService.RemoveItem("user"); _navigationManager.NavigateTo("signin"); }
public async Task Logout() { await _localStorage.RemoveItem("authToken"); ((ApiAuthenticationStateProvider)_authenticationStateProvider).MarkUserAsLoggedOut(); _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("bearer", ""); }
public async Task Logout() { await _storageService.RemoveItem("token"); userClaims = null; IsAuthenticated = false; _navigationManager.NavigateTo("account/login"); }
public async Task Logout() { User = null; await _localStorageService.RemoveItem("tokenModel"); _navigationManager.NavigateTo("login"); }
public async Task Logout() { User = null; await _localStorageService.RemoveItem("user"); _schedulesState.Clear(); _scheduleItemsState.Clear(); _navigationManager.NavigateTo("", true); }
public async Task Login(string username, string password) { ///Do poprawy dzia³a ale najpierw powinienem pobraæ dane zeby sprawdziæ czy jest taki goœc i dopiero go zapisac w lokal User = new User() { AuthData = $"{username}:{password}".EncodeBase64() }; await _localStorageService.SetItem("user", User); UserData = await _httpService.Get <User>("/Users/me"); if (UserData != null) { await _localStorageService.SetItem("userData", UserData); } else { await _localStorageService.RemoveItem("user"); } }
public async Task RemoveAccessTokenAsync() => await _localStorage.RemoveItem("authToken");
public async Task Logout() { await _localStorage.RemoveItem("authToken"); IsLoggedIn = false; }
public async Task Logout() { await _localStorageService.RemoveItem("user"); }