Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JWTAuth

Factory interface for creating JWT based {@link AuthenticationProvider} instances.

Hierarchy

  • any
    • JWTAuth

Index

Methods

generateToken

  • generateToken(claims: {}, options: JWTOptions): string
  • generateToken(claims: {}): string
  • Generate a new JWT token.

    Parameters

    • claims: {}
      • [key: string]: any
    • options: JWTOptions

    Returns string

  • Generate a new JWT token.

    Parameters

    • claims: {}
      • [key: string]: any

    Returns string

Static create

  • Create a JWT auth provider

    Parameters

    Returns JWTAuth

Generated using TypeDoc