UNPKG

supertokens-node

Version:
25 lines (24 loc) 946 B
// @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;