Skip to content
Snippets Groups Projects
Commit 9bfaeb6a authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: camelcase var

parent fc870228
No related branches found
No related tags found
3 merge requests!68Recette,!67Dev,!38Feat/auth
export class UserAuth { export class UserAuth {
username: string; username: string;
access_token: string; accessToken: string;
expires_at: string; expiresAt: string;
} }
...@@ -22,7 +22,7 @@ export class AuthService { ...@@ -22,7 +22,7 @@ export class AuthService {
} }
public get token(): string { public get token(): string {
return this.userSubject.value.access_token; return this.userSubject.value.accessToken;
} }
public logout(): void { public logout(): void {
...@@ -38,7 +38,7 @@ export class AuthService { ...@@ -38,7 +38,7 @@ export class AuthService {
} }
public getExpiration(): DateTime { public getExpiration(): DateTime {
return DateTime.fromISO(this.userValue.expires_at, { zone: 'Europe/Paris' }); return DateTime.fromISO(this.userValue.expiresAt, { zone: 'Europe/Paris' });
} }
public register(user: User): Observable<any> { public register(user: User): Observable<any> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment