validateAsymmetricToken
@appfire/fuse-auth-core • Docs
@appfire/fuse-auth-core / validateAsymmetricToken
Function: validateAsymmetricToken()
validateAsymmetricToken(
token,rsa_public_key):boolean
Validates an asymmetric JWT token.
Parameters
• token: string
The JWT token to validate.
• rsa_public_key: undefined | string
The public key used for decoding the token.
Returns
boolean
A boolean indicating whether the token is valid or not.