AuthenticatedSession

AuthenticatedSession

An AuthenticatedSession is created upon successful authentication.

Signature

class AuthenticatedSession extends Session {
  constructor(input: DeepPartial<AuthenticatedSession>)
  @Index() @ManyToOne(type => User) @Index()
    @ManyToOne(type => User)
    user: User;
  @Column() @Column()
    authenticationStrategy: string;
}

Extends

Members

constructor

method
type:
(input: DeepPartial<AuthenticatedSession>) => AuthenticatedSession

user

property
type:
User
The User who has authenticated to create this session.

authenticationStrategy

property
type:
string
The name of the AuthenticationStrategy used when authenticating to create this session.