Skip to main content

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;}

constructor

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

user

propertyUser

The User who has authenticated to create this session.

authenticationStrategy

propertystring

The name of the AuthenticationStrategy used when authenticating to create this session.

Was this chapter helpful?
Report Issue
Edited Feb 2, 2026·Edit this page