These are the SDK reference docs. If you’re looking for docs to implement SuperTokens, you might want to check out the User Guides

Module recipe/openid

Index

Functions

createJWT

  • createJWT(payload?: any, validitySeconds?: number): Promise<{ jwt: string; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" }>
  • Parameters

    • Optional payload: any
    • Optional validitySeconds: number

    Returns Promise<{ jwt: string; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" }>

getJWKS

  • getJWKS(): Promise<{ keys: JsonWebKey[]; status: "OK" }>

getOpenIdDiscoveryConfiguration

  • getOpenIdDiscoveryConfiguration(): Promise<{ issuer: string; jwks_uri: string; status: "OK" }>

init

  • init(config?: TypeInput): RecipeListFunction

Generated using TypeDoc