---
title: "AuthenticatedSession"
generated: true
---
<GenerationInfo sourceFile="packages/core/src/entity/session/authenticated-session.entity.ts" sourceLine="14" packageName="@vendure/core" />

An AuthenticatedSession is created upon successful authentication.

```ts title="Signature"
class AuthenticatedSession extends Session {
    constructor(input: DeepPartial<AuthenticatedSession>)
    @Index()
    @ManyToOne(type => User, user => user.sessions)
    user: User;
    @Column()
    authenticationStrategy: string;
}
```
* Extends: <DocsLink href="/reference/typescript-api/entities/session#session">`Session`</DocsLink>



<div className="members-wrapper">

### constructor

<MemberInfo kind="method" type={`(input: `DeepPartial<`<a href='/reference/typescript-api/entities/authenticated-session#authenticatedsession'>AuthenticatedSession</a>`>`) => AuthenticatedSession`}   />


### user

<MemberInfo kind="property" type={`<a href='/reference/typescript-api/entities/user#user'>User</a>`}   />

The <DocsLink href="/reference/typescript-api/entities/user#user">User</DocsLink> who has authenticated to create this session.
### authenticationStrategy

<MemberInfo kind="property" type={`string`}   />

The name of the <DocsLink href="/reference/typescript-api/auth/authentication-strategy#authenticationstrategy">AuthenticationStrategy</DocsLink> used when authenticating
to create this session.


</div>
