Session

Session

A Session is created when a user makes a request to the API. A Session can be an AnonymousSession in the case of un-authenticated users, otherwise it is an AuthenticatedSession.

Signature

class Session extends VendureEntity {
  @Index({ unique: true })
    @Column()
    token: string;
  @Column() expires: Date;
  @Column() invalidated: boolean;
  @ManyToOne(type => Order)
    activeOrder: Order | null;
}

Members

token

property
type:
string

expires

property
type:
Date

invalidated

property
type:
boolean

activeOrder

property
type:
Order | null
alpha