103. Add user to local cache (#12)

This commit is contained in:
Art
2021-09-12 12:22:19 +03:00
parent 08131705cc
commit a5acaa906d

View File

@ -43,4 +43,7 @@ export class AuthenticationService {
this.storage.setItem(this.JWT_TOKEN_STORAGE_KEY, token);
}
public addUserToLocalStorage(user: User) {
this.storage.setItem("user", JSON.stringify(user));
}
}