Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
allow null name
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Jul 12, 2018
1 parent f6a5979 commit 67b2b53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/angular/components/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { AuthResult } from '../../models/domain/authResult';

import { AuthService } from '../../abstractions/auth.service';
import { I18nService } from '../../abstractions/i18n.service';
import { SyncService } from '../../abstractions/sync.service';

export class LoginComponent {
@Input() email: string = '';
Expand Down
2 changes: 1 addition & 1 deletion src/services/token.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class TokenService implements TokenServiceAbstraction {
getName(): string {
const decoded = this.decodeToken();
if (typeof decoded.name === 'undefined') {
throw new Error('No name found');
return null;
}

return decoded.name as string;
Expand Down

0 comments on commit 67b2b53

Please sign in to comment.