@dialstack/sdk-dev / server/src / UserSessionCreateResponse
Interface: UserSessionCreateResponse
Defined in: sdk/server/src/index.ts:535
Response from dialstack.userSessions.create().
user and account echo the identifiers the token was minted for, so
callers can log/track them without decoding the JWT body. Matches the
shape of dialstack.accountSessions.create() which returns account_id.
client_secret is the signed JWT to hand to the client. Use it as the
Bearer token when connecting to the WebRTC signalling WebSocket and
when calling /v1/me/* REST endpoints.
Properties
account
TypeScript
account: string;
Defined in: sdk/server/src/index.ts:537
client_secret
TypeScript
client_secret: string;
Defined in: sdk/server/src/index.ts:538
expires_at
TypeScript
expires_at: string;
Defined in: sdk/server/src/index.ts:539
user
TypeScript
user: string;
Defined in: sdk/server/src/index.ts:536