supertokens-node
Preparing search index...
recipe/oauth2provider
validateOAuth2AccessToken
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
Optional
requirements
:
{
audience
?:
string
;
clientId
?:
string
;
scopes
?:
string
[]
}
Optional
checkDatabase
:
boolean
Optional
userContext
:
Record
<
string
,
any
>
Returns
Promise
<
{
payload
:
JSONObject
;
status
:
"OK"
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
supertokens-node
Loading...