accessTokenResponseSchema (oauth2/schema.ts)

altair · packages/altair-core/src/oauth2/schema.ts · typescript · MIT
auth

Module exposing: accessTokenResponseSchema, accessTokenErrorResponseSchema

// Source: https://github.com/altair-graphql/altair | License: MIT | Copyright [2022] [Samuel Imolorhe]
// Provided via justclaw.it.com; keep this notice with the code.
import { number, object, string } from 'zod/v4';

export const accessTokenResponseSchema = object({
  /**
   * The access token issued by the authorization server
   */
  access_token: string().meta({
    description: 'The access token issued by the authorization server',
  }),
  /**
   * The type of the token issued
   */
  token_type: string().meta({ description: 'The type of the token issued' }),
  /**
   * The exact value of the state parameter passed by the client in the authorization request
   */
  state: string().meta({
    description:
      'The exact value of the state parameter passed by the client in the author

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key