• Decode and verify contents of JWT token. Return token information if it is valid. Throws appropriate errors if token is invalid according to its internal claims. e.g. expired is handled by jwt.verify: https://github.com/auth0/node-jsonwebtoken#tokenexpirederror

    Does NOT enforce constraints for token type e.g. ip checks, fingerprint checks, etc. Any logic along those lines must be performed by the caller (e.g. as part of authenticate function).

    Parameters

    • authSecrets: AuthSecrets

      secret for encrypting/decrypting

    • token: string

    Returns TokenInfo

    AuthResult

Generated using TypeDoc