supertokens-node
    Preparing search index...

    Type Alias RecipeInterface

    type RecipeInterface = {
        createJWT(
            input: {
                payload?: any;
                userContext: UserContext;
                useStaticSigningKey?: boolean;
                validitySeconds?: number;
            },
        ): Promise<
            | { jwt: string; status: "OK" }
            | { status: "UNSUPPORTED_ALGORITHM_ERROR" },
        >;
        getJWKS(
            input: { userContext: UserContext },
        ): Promise<{ keys: JsonWebKey[]; validityInSeconds?: number }>;
    }
    Index

    Methods

    • Parameters

      • input: {
            payload?: any;
            userContext: UserContext;
            useStaticSigningKey?: boolean;
            validitySeconds?: number;
        }

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

    • Parameters

      • input: { userContext: UserContext }

      Returns Promise<{ keys: JsonWebKey[]; validityInSeconds?: number }>