diff --git a/docs/classes/framework.BaseRequest.html b/docs/classes/framework.BaseRequest.html index 498c817a5..cd9b8c240 100644 --- a/docs/classes/framework.BaseRequest.html +++ b/docs/classes/framework.BaseRequest.html @@ -1 +1 @@ -
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Short-hand for:
req.protocol == 'https'
-The net.Socket
object associated with the connection.
With HTTPS support, use request.socket.getPeerCertificate()
to obtain the
client's authentication details.
Generated using TypeDoc
Access: read only and the public server interface. The server object.
-An object containing parsed HTTP state information (cookies) where each key is the cookie name and value is the matching cookie content after processing using any registered cookie definition.
The parsed request URI.
diff --git a/docs/interfaces/framework_koa.SessionContext.html b/docs/interfaces/framework_koa.SessionContext.html index b867745dd..af6f319c9 100644 --- a/docs/interfaces/framework_koa.SessionContext.html +++ b/docs/interfaces/framework_koa.SessionContext.html @@ -81,7 +81,7 @@Short-hand for:
this.protocol == 'https'
-Return the request socket.
Check if the request is stale, aka diff --git a/docs/interfaces/framework_loopback.SessionContext.html b/docs/interfaces/framework_loopback.SessionContext.html index 07a9b349c..fa4dbb346 100644 --- a/docs/interfaces/framework_loopback.SessionContext.html +++ b/docs/interfaces/framework_loopback.SessionContext.html @@ -14,7 +14,7 @@
A flag to tell if the response is finished.
Scope for binding resolution
-Manager for observer subscriptions
Indexer for bindings by tag
diff --git a/docs/interfaces/recipe_session.SessionContainer.html b/docs/interfaces/recipe_session.SessionContainer.html index cffbfc68a..5b52e8d5d 100644 --- a/docs/interfaces/recipe_session.SessionContainer.html +++ b/docs/interfaces/recipe_session.SessionContainer.html @@ -1 +1 @@ -Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
We do not add a GeneralErrorResponse response to this API since it's not something that is directly called by the user on the frontend anyway
-Used to retrieve all session information for a given session handle. Can be used in place of:
Returns undefined if the sessionHandle does not exist
-Returns false if the sessionHandle does not exist
-Generated using TypeDoc
Returns false if the sessionHandle does not exist
+Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Updates the metadata object of the user by doing a shallow merge of the stored and the update JSONs and removing properties set to null on the root level of the update object. e.g.:
@@ -7,4 +7,4 @@{ "notifications": { "sms": true }, "todos": null }
{ "preferences": { "theme":"dark" }, "notifications": { "sms": true } }
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
- Preparing search index...
- The search index is not available
supertokens-nodeClass default
Hierarchy
Index
Constructors
Properties
Methods
Constructors
constructor
Returns default
Properties
Static Error
Static init
Type declaration
Parameters
Optional config: TypeInput
Returns RecipeListFunction
Methods
Static createJWT
Parameters
Optional payload: any
Optional validitySeconds: number
Optional useStaticSigningKey: boolean
userContext: any = {}
Returns Promise<{ jwt: string; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" }>
Static create New Session
Parameters
req: any
res: any
tenantId: string
userId: string
accessTokenPayload: any = {}
sessionDataInDatabase: any = {}
userContext: any = {}
Returns Promise<SessionContainer>
Static create New Session Without Request Response
Parameters
tenantId: string
userId: string
accessTokenPayload: any = {}
sessionDataInDatabase: any = {}
disableAntiCsrf: boolean = false
userContext: any = {}
Returns Promise<SessionContainer>
Static fetch And Set Claim
Parameters
sessionHandle: string
claim: SessionClaim<any>
userContext: any = {}
Returns Promise<boolean>
Static get All Session Handles For User
Parameters
userId: string
Optional tenantId: string
userContext: any = {}
Returns Promise<string[]>
Static get Claim Value
Type parameters
T
Parameters
sessionHandle: string
claim: SessionClaim<T>
userContext: any = {}
Returns Promise<{ status: "SESSION_DOES_NOT_EXIST_ERROR" } | { status: "OK"; value: undefined | T }>
Static getJWKS
Parameters
userContext: any = {}
Returns Promise<{ keys: JsonWebKey[] }>
Static get Open Id Discovery Configuration
Parameters
userContext: any = {}
Returns Promise<{ issuer: string; jwks_uri: string; status: "OK" }>
Static get Session
Parameters
req: any
res: any
Returns Promise<SessionContainer>
Parameters
req: any
res: any
Optional options: VerifySessionOptions & { sessionRequired?: true }
Optional userContext: any
Returns Promise<SessionContainer>
Parameters
req: any
res: any
Optional options: VerifySessionOptions & { sessionRequired: false }
Optional userContext: any
Returns Promise<undefined | SessionContainer>
Parameters
req: any
res: any
Optional options: VerifySessionOptions
Optional userContext: any
Returns Promise<undefined | SessionContainer>
Static get Session Information
Parameters
sessionHandle: string
userContext: any = {}
Returns Promise<undefined | SessionInformation>
Static get Session Without Request Response
Tries to validate an access token and build a Session object from it.
Notes about anti-csrf checking:
@@ -16,4 +16,4 @@
The access token extracted from the authorization header or cookies
Optional antiCsrfToken: string
The anti-csrf token extracted from the authorization header or cookies. Can be undefined if antiCsrfCheck is false
-Returns Promise<SessionContainer>
Parameters
accessToken: string
Optional antiCsrfToken: string
Optional options: VerifySessionOptions & { sessionRequired?: true }
Optional userContext: any
Returns Promise<SessionContainer>
Parameters
accessToken: string
Optional antiCsrfToken: string
Optional options: VerifySessionOptions & { sessionRequired: false }
Optional userContext: any
Returns Promise<undefined | SessionContainer>
Parameters
accessToken: string
Optional antiCsrfToken: string
Optional options: VerifySessionOptions
Optional userContext: any
Returns Promise<undefined | SessionContainer>
Static merge Into Access Token Payload
Parameters
sessionHandle: string
accessTokenPayloadUpdate: JSONObject
userContext: any = {}
Returns Promise<boolean>
Static refresh Session
Parameters
req: any
res: any
userContext: any = {}
Returns Promise<SessionContainer>
Static refresh Session Without Request Response
Parameters
refreshToken: string
disableAntiCsrf: boolean = false
Optional antiCsrfToken: string
userContext: any = {}
Returns Promise<SessionContainer>
Static remove Claim
Parameters
sessionHandle: string
claim: SessionClaim<any>
userContext: any = {}
Returns Promise<boolean>
Static revoke All Sessions For User
Parameters
userId: string
Optional tenantId: string
userContext: any = {}
Returns Promise<string[]>
Static revoke Multiple Sessions
Parameters
sessionHandles: string[]
userContext: any = {}
Returns Promise<string[]>
Static revoke Session
Parameters
sessionHandle: string
userContext: any = {}
Returns Promise<boolean>
Static set Claim Value
Type parameters
T
Parameters
sessionHandle: string
claim: SessionClaim<T>
value: T
userContext: any = {}
Returns Promise<boolean>
Static update Session Data In Database
Parameters
sessionHandle: string
newSessionData: any
userContext: any = {}
Returns Promise<boolean>
Static validate Claims For Session Handle
Parameters
sessionHandle: string
Optional overrideGlobalClaimValidators: (globalClaimValidators: SessionClaimValidator[], sessionInfo: SessionInformation, userContext: any) => SessionClaimValidator[] | Promise<SessionClaimValidator[]>
Parameters
globalClaimValidators: SessionClaimValidator[]
sessionInfo: SessionInformation
userContext: any
Returns SessionClaimValidator[] | Promise<SessionClaimValidator[]>
userContext: any = {}
Returns Promise<{ status: "SESSION_DOES_NOT_EXIST_ERROR" } | { invalidClaims: ClaimValidationError[]; status: "OK" }>
Static validate Claims InJWTPayload
Parameters
tenantId: string
userId: string
jwtPayload: JSONObject
Optional overrideGlobalClaimValidators: (globalClaimValidators: SessionClaimValidator[], userId: string, userContext: any) => SessionClaimValidator[] | Promise<SessionClaimValidator[]>
Parameters
globalClaimValidators: SessionClaimValidator[]
userId: string
userContext: any
Returns SessionClaimValidator[] | Promise<SessionClaimValidator[]>
userContext: any = {}
Returns Promise<{ invalidClaims: ClaimValidationError[]; status: "OK" }>
Generated using TypeDoc