Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

UserSession

import type { UserSession } from "https://googleapis.deno.dev/v1/paymentsresellersubscription:v1.ts";

Contains a short-lived token containing information required to interact with the Google Payments Reseller Platform via web endpoints. - Generate a user session token dynamically for an authenticated user. Do not share a token directly with a user in an unauthenticated context, such as SMS or email. - You can regenerate new session tokens repeatedly for the same generate request if necessary, regardless of whether previous tokens have expired. Multiple sessions will not result in duplicate fulfillments because the subscription ID guarantees uniqueness. For more integration details, see the Google Managed Signup documentation.

interface UserSession {
readonly expireTime?: Date;
readonly token?: string;
}

§Properties

§
readonly expireTime?: Date
[src]

Output only. The time at which the user session expires.

§
readonly token?: string
[src]

Output only. The encrypted token of the user session, including the information of the user's intent and request. This token should be provided when redirecting the user to Google.