Added new variable to help with timing
This commit is contained in:
@@ -15,6 +15,7 @@ export class SessionManager {
|
||||
private notification = inject(TuiNotificationService);
|
||||
|
||||
public userData = signal<PersonalUserData|undefined>(undefined);
|
||||
public sessionReady = signal(false); // Helps with timing session loading
|
||||
|
||||
async addSession(refreshToken: string, accessToken: string, userId: string) {
|
||||
const date = new Date();
|
||||
@@ -90,6 +91,8 @@ export class SessionManager {
|
||||
console.log(
|
||||
`Successfully rotated token pair for ID: ${userData.userId} Username: ${userData.username}. This session is now ready to be used.`,
|
||||
);
|
||||
console.log(data.accessToken)
|
||||
this.sessionReady.set(true);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user