HomeVendure CoreMoreMoreEntitiesSessionOn this pageSession@vendure/coreSource A Session is created when a user makes a request to restricted API operations. A Session can be an AnonymousSession in the case of un-authenticated users, otherwise it is an AuthenticatedSession. Signatureclass Session extends VendureEntity implements HasCustomFields { @Index({ unique: true }) @Column() token: string; @Column() expires: Date; @Column() invalidated: boolean; @EntityId({ nullable: true }) activeOrderId?: ID; @Index() @ManyToOne(type => Order) activeOrder: Order | null; @EntityId({ nullable: true }) activeChannelId?: ID; @Index() @ManyToOne(type => Channel) activeChannel: Channel | null; @Column(type => CustomSessionFields) customFields: CustomSessionFields;} Extends: VendureEntity Implements: HasCustomFields tokenpropertystringexpirespropertyDateinvalidatedpropertybooleanactiveOrderIdpropertyIDactiveOrderpropertyOrder | nullactiveChannelIdpropertyIDactiveChannelpropertyChannel | nullcustomFieldspropertyCustomSessionFieldsWas this chapter helpful?It was helpfulIt wasn't helpfulReport IssuePreviousSellerNextSettingsStoreEntryEdited Jan 28, 2026ยทEdit this page