Search
Preparing search index...
The search index is not available
supertokens-node
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
supertokens-node
recipe/oauth2provider
default
Class default
Hierarchy
default
Index
Constructors
constructor
Properties
init
Methods
createOAuth2
Client
create
Token
For
Client
Credentials
deleteOAuth2
Client
getOAuth2
Client
getOAuth2
Clients
revoke
Token
revoke
Tokens
By
Client
Id
revoke
Tokens
By
Session
Handle
updateOAuth2
Client
validateOAuth2
Access
Token
validateOAuth2
Refresh
Token
Constructors
constructor
new default
(
)
:
default
Returns
default
Properties
Static
init
init
:
(
(
config
?:
TypeInput
)
=>
RecipeListFunction
)
= Recipe.init
Type declaration
(
config
?:
TypeInput
)
:
RecipeListFunction
Parameters
Optional
config:
TypeInput
Returns
RecipeListFunction
Methods
Static
createOAuth2
Client
createOAuth2
Client
(
input
:
Partial
<
Omit
<
OAuth2ClientOptions
,
"createdAt"
|
"updatedAt"
>
>
, userContext
?:
Record
<
string
,
any
>
)
:
Promise
<
{
client
:
OAuth2Client
;
status
:
"OK"
}
|
{
error
:
string
;
errorDescription
:
string
;
status
:
"ERROR"
}
>
Parameters
input:
Partial
<
Omit
<
OAuth2ClientOptions
,
"createdAt"
|
"updatedAt"
>
>
Optional
userContext:
Record
<
string
,
any
>
Returns
Promise
<
{
client
:
OAuth2Client
;
status
:
"OK"
}
|
{
error
:
string
;
errorDescription
:
string
;
status
:
"ERROR"
}
>
Static
create
Token
For
Client
Credentials
create
Token
For
Client
Credentials
(
clientId
:
string
, clientSecret
:
string
, scope
?:
string
[]
, audience
?:
string
, userContext
?:
Record
<
string
,
any
>
)
:
Promise
<
TokenInfo
|
ErrorOAuth2
>
Parameters
clientId:
string
clientSecret:
string
Optional
scope:
string
[]
Optional
audience:
string
Optional
userContext:
Record
<
string
,
any
>
Returns
Promise
<
TokenInfo
|
ErrorOAuth2
>
Static
deleteOAuth2
Client
deleteOAuth2
Client
(
input
:
DeleteOAuth2ClientInput
, userContext
?:
Record
<
string
,
any
>
)
:
Promise
<
{
status
:
"OK"
}
|
{
error
:
string
;
errorDescription
:
string
;
status
:
"ERROR"
}
>
Parameters
input:
DeleteOAuth2ClientInput
Optional
userContext:
Record
<
string
,
any
>
Returns
Promise
<
{
status
:
"OK"
}
|
{
error
:
string
;
errorDescription
:
string
;
status
:
"ERROR"
}
>
Static
getOAuth2
Client
getOAuth2
Client
(
clientId
:
string
, userContext
?:
Record
<
string
,
any
>
)
:
Promise
<
{
client
:
OAuth2Client
;
status
:
"OK"
}
|
{
error
:
string
;
errorDescription
:
string
;
status
:
"ERROR"
}
>
Parameters
clientId:
string
Optional
userContext:
Record
<
string
,
any
>
Returns
Promise
<
{
client
:
OAuth2Client
;
status
:
"OK"
}
|
{
error
:
string
;
errorDescription
:
string
;
status
:
"ERROR"
}
>
Static
getOAuth2
Clients
getOAuth2
Clients
(
input
:
GetOAuth2ClientsInput
, userContext
?:
Record
<
string
,
any
>
)
:
Promise
<
{
clients
:
OAuth2Client
[]
;
nextPaginationToken
?:
string
;
status
:
"OK"
}
|
{
error
:
string
;
errorDescription
:
string
;
status
:
"ERROR"
}
>
Parameters
input:
GetOAuth2ClientsInput
Optional
userContext:
Record
<
string
,
any
>
Returns
Promise
<
{
clients
:
OAuth2Client
[]
;
nextPaginationToken
?:
string
;
status
:
"OK"
}
|
{
error
:
string
;
errorDescription
:
string
;
status
:
"ERROR"
}
>
Static
revoke
Token
revoke
Token
(
token
:
string
, clientId
:
string
, clientSecret
?:
string
, userContext
?:
Record
<
string
,
any
>
)
:
Promise
<
ErrorOAuth2
|
{
status
:
"OK"
}
>
Parameters
token:
string
clientId:
string
Optional
clientSecret:
string
Optional
userContext:
Record
<
string
,
any
>
Returns
Promise
<
ErrorOAuth2
|
{
status
:
"OK"
}
>
Static
revoke
Tokens
By
Client
Id
revoke
Tokens
By
Client
Id
(
clientId
:
string
, userContext
?:
Record
<
string
,
any
>
)
:
Promise
<
{
status
:
"OK"
}
>
Parameters
clientId:
string
Optional
userContext:
Record
<
string
,
any
>
Returns
Promise
<
{
status
:
"OK"
}
>
Static
revoke
Tokens
By
Session
Handle
revoke
Tokens
By
Session
Handle
(
sessionHandle
:
string
, userContext
?:
Record
<
string
,
any
>
)
:
Promise
<
{
status
:
"OK"
}
>
Parameters
sessionHandle:
string
Optional
userContext:
Record
<
string
,
any
>
Returns
Promise
<
{
status
:
"OK"
}
>
Static
updateOAuth2
Client
updateOAuth2
Client
(
input
:
UpdateOAuth2ClientInput
, userContext
?:
Record
<
string
,
any
>
)
:
Promise
<
{
client
:
OAuth2Client
;
status
:
"OK"
}
|
{
error
:
string
;
errorDescription
:
string
;
status
:
"ERROR"
}
>
Parameters
input:
UpdateOAuth2ClientInput
Optional
userContext:
Record
<
string
,
any
>
Returns
Promise
<
{
client
:
OAuth2Client
;
status
:
"OK"
}
|
{
error
:
string
;
errorDescription
:
string
;
status
:
"ERROR"
}
>
Static
validateOAuth2
Access
Token
validateOAuth2
Access
Token
(
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
audience
?:
string
Optional
client
Id
?:
string
Optional
scopes
?:
string
[]
Optional
checkDatabase:
boolean
Optional
userContext:
Record
<
string
,
any
>
Returns
Promise
<
{
payload
:
JSONObject
;
status
:
"OK"
}
>
Static
validateOAuth2
Refresh
Token
validateOAuth2
Refresh
Token
(
token
:
string
, scopes
?:
string
[]
, userContext
?:
Record
<
string
,
any
>
)
:
Promise
<
InstrospectTokenResponse
>
Parameters
token:
string
Optional
scopes:
string
[]
Optional
userContext:
Record
<
string
,
any
>
Returns
Promise
<
InstrospectTokenResponse
>
Modules
framework
framework/aws
Lambda
framework/custom
framework/express
framework/fastify
framework/hapi
framework/koa
framework/loopback
index
ingredients/emaildelivery
ingredients/smsdelivery
recipe/accountlinking
recipe/dashboard
recipe/emailpassword
recipe/emailverification
recipe/jwt
recipe/multifactorauth
recipe/multitenancy
recipe/oauth2provider
recipe/openid
recipe/passwordless
recipe/session
recipe/thirdparty
recipe/totp
recipe/usermetadata
recipe/userroles
default
constructor
init
createOAuth2
Client
create
Token
For
Client
Credentials
deleteOAuth2
Client
getOAuth2
Client
getOAuth2
Clients
revoke
Token
revoke
Tokens
By
Client
Id
revoke
Tokens
By
Session
Handle
updateOAuth2
Client
validateOAuth2
Access
Token
validateOAuth2
Refresh
Token
Generated using
TypeDoc