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;
}