UNPKG

supertokens-node

Version:
37 lines (36 loc) 1.02 kB
// @ts-nocheck import * as jose from "jose"; import { ProviderConfigForClientType } from "../types"; export declare function doGetRequest( url: string, queryParams?: { [key: string]: string; }, headers?: { [key: string]: string; } ): Promise<{ jsonResponse: Record<string, any> | undefined; status: number; stringResponse: string; }>; export declare function doPostRequest( url: string, params: { [key: string]: any; }, headers?: { [key: string]: string; } ): Promise<{ jsonResponse: Record<string, any> | undefined; status: number; stringResponse: string; }>; export declare function verifyIdTokenFromJWKSEndpointAndGetPayload( idToken: string, jwks: jose.JWTVerifyGetKey, otherOptions: jose.JWTVerifyOptions ): Promise<any>; export declare function discoverOIDCEndpoints(config: ProviderConfigForClientType): Promise<void>; export declare function normaliseOIDCEndpointToIncludeWellKnown(url: string): string;