JWTValidate
Method Signature
JWTValidate( token, [key], [algorithm], [options] )Arguments
Argument
Type
Required
Description
Default
Returns
Examples
if ( jwtValidate( token, secret, "HS256" ) ) {
payload = jwtVerify( token, secret, "HS256" );
// proceed with authenticated request
} else {
// redirect to login / return 401
}Related
Last updated
Was this helpful?
