A customer session that can be used to authenticate as a customer.
import { CustomerSession } from "@polar-sh/sdk/models/components/customersession.js";
let value: CustomerSession = {
createdAt: new Date("2025-01-18T07:26:54.119Z"),
modifiedAt: new Date("2023-05-12T18:42:21.049Z"),
id: "<value>",
token: "<value>",
expiresAt: new Date("2024-02-29T05:46:31.262Z"),
customerPortalUrl: "https://exotic-viability.com/",
customerId: "<value>",
customer: {
createdAt: new Date("2024-08-26T14:28:00.674Z"),
modifiedAt: new Date("2024-11-28T11:57:24.137Z"),
id: "<value>",
metadata: {
"key": 243014,
},
email: "[email protected]",
emailVerified: false,
name: "<value>",
billingAddress: {
country: "Monaco",
},
taxId: [
"do_rcn",
],
organizationId: "<value>",
avatarUrl: "https://blushing-density.info",
},
};
Field | Type | Required | Description |
---|---|---|---|
createdAt |
Date | ✔️ | Creation timestamp of the object. |
modifiedAt |
Date | ✔️ | Last modification timestamp of the object. |
id |
string | ✔️ | The ID of the object. |
token |
string | ✔️ | N/A |
expiresAt |
Date | ✔️ | N/A |
customerPortalUrl |
string | ✔️ | N/A |
customerId |
string | ✔️ | N/A |
customer |
components.Customer | ✔️ | A customer in an organization. |