We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f6bca commit 50b6dd7Copy full SHA for 50b6dd7
client/src/app/api/auth.service.ts
@@ -24,8 +24,8 @@ export class AuthService {
24
const rawToken = this.getToken();
25
if (rawToken && this.isValid()) {
26
try {
27
- const token = this.helperService.decodeToken(rawToken);
28
- return token.user_type === 'Admin';
+ const token = this.helperService.decodeToken(rawToken);
+ return token.user_type === 'Admin';
29
} catch {
30
return false;
31
}
0 commit comments