Preparing search index...
The search index is not available
@basaldev/blocks-backend-sdk - v3.4.0
@basaldev/blocks-backend-sdk
security
getUserIdFromToken
Function getUserIdFromToken
get
User
Id
From
Token
(
authSecrets
,
authenticate
,
context
,
logger
)
:
Promise
<
string
>
Get userId from a token, throw error if:
token is missing
error when parsing token
token is not a user token
Parameters
authSecrets
:
AuthSecrets
authenticate
:
AuthenticationFunction
context
:
AdapterHandlerContext
logger
:
Logger
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
@basaldev/blocks-backend-sdk - v3.4.0
adapter
app
bucket
crypto
external
module
mongo
route
security
util
BunyanLogger
BunyanLoggerFactory
NBAjv
NBError
AjvOptions
InnerErrorData
InternalRequestOptions
Logger
LoggerFactory
LoggerOpts
NBErrorData
Loading...
Generated using
TypeDoc
Get userId from a token, throw error if: