supertokens-node
    Preparing search index...

    Variable validateOAuth2AccessToken

    validateOAuth2AccessToken: (
        token: string,
        requirements?: { audience?: string; clientId?: string; scopes?: string[] },
        checkDatabase?: boolean,
        userContext?: Record<string, any>,
    ) => Promise<{ payload: JSONObject; status: "OK" }> = Wrapper.validateOAuth2AccessToken

    Type declaration

      • (
            token: string,
            requirements?: { audience?: string; clientId?: string; scopes?: string[] },
            checkDatabase?: boolean,
            userContext?: Record<string, any>,
        ): Promise<{ payload: JSONObject; status: "OK" }>
      • Parameters

        • token: string
        • Optionalrequirements: { audience?: string; clientId?: string; scopes?: string[] }
        • OptionalcheckDatabase: boolean
        • OptionaluserContext: Record<string, any>

        Returns Promise<{ payload: JSONObject; status: "OK" }>