Add DiscordAppealMapper to initialization and simplify username reload logic in auth service.
This commit is contained in:
@@ -87,9 +87,7 @@ export class AuthService {
|
||||
const claims = this.extractJwtClaims(jwt);
|
||||
this.userClaimsSubject.set(claims);
|
||||
this.isAuthenticatedSubject.set(true);
|
||||
if (this.username() == null) {
|
||||
this.reloadUsername();
|
||||
}
|
||||
this.reloadUsername();
|
||||
return true;
|
||||
} catch (e) {
|
||||
this.logout();
|
||||
|
||||
Reference in New Issue
Block a user