AuthenticatedSession
AuthenticatedSession
An AuthenticatedSession is created upon successful authentication.
Signature
class AuthenticatedSession extends Session {
constructor(input: DeepPartial<AuthenticatedSession>)
@Index()
@ManyToOne(type => User, user => user.sessions)
user: User;
@Column()
authenticationStrategy: string;
}
- Extends:
Session
constructor
method
(input: DeepPartial<AuthenticatedSession>) => AuthenticatedSession
user
property
The User who has authenticated to create this session.
authenticationStrategy
property
string
The name of the AuthenticationStrategy used when authenticating to create this session.