You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is sessionstate (ISessionState.isOAuth) oAuth status being populated? I'm getting a value of undefined everytime I check it , even with I'm logged in with that auth method. It seems there is no handling of that value within the class:
(...)
export class SessionState implements ISessionState {
public get IsLoggedOut(): boolean { return this.currentAuthStep === AuthStepLevels.LoggedOut; }
public get IsAwaitingSecondaryAuth(): boolean { return this.currentAuthStep === AuthStepLevels.AwaitsSecondaryAuth; }
public get IsLoggedIn(): boolean { return this.currentAuthStep === AuthStepLevels.LoggedIn; }
public get Username(): string { return this.sessionResponse && this.IsLoggedIn ? this.sessionResponse.Status.PrimaryAuth.Display : null; }
public get UserUid(): string { return this.sessionResponse && this.IsLoggedIn ? this.sessionResponse.Status.PrimaryAuth.Uid : null; }
public get SecondaryAuthName(): string {
return this.sessionResponse && this.sessionResponse.Status && this.sessionResponse.Status.SecondaryAuth ?
this.sessionResponse.Status.SecondaryAuth.Name :
null;
}
(...)
The text was updated successfully, but these errors were encountered:
Hi @juancarloscamargo - coming from the developer who worked on this feature:
The sessionstate represents the session regardless of how the user authenticated, including OAuth-based flows. Our components rely on the session state to detect if the user is logged in, and you should be seeing the same state.
I was trying to figure out how the user authenticated and apply some actions accordingly. That's why I was working with the SessionState class, which implements ISessionState , this one having the following definition:
Hi,
Is sessionstate (ISessionState.isOAuth) oAuth status being populated? I'm getting a value of undefined everytime I check it , even with I'm logged in with that auth method. It seems there is no handling of that value within the class:
(...)
export class SessionState implements ISessionState {
(...)
The text was updated successfully, but these errors were encountered: