Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JWTOptions

Hierarchy

  • JWTOptions

Index

Constructors

constructor

  • Returns JWTOptions

  • Parameters

    Returns JWTOptions

Methods

addAudience

  • Parameters

    • audiences: string

    Returns JWTOptions

addPermission

  • Parameters

    • permissions: string

    Returns JWTOptions

getAlgorithm

  • getAlgorithm(): string
  • Returns string

getAudience

  • getAudience(): string[]
  • Returns string[]

getExpiresInSeconds

  • getExpiresInSeconds(): number
  • Returns number

getHeader

  • getHeader(): {}
  • Returns {}

    • [key: string]: any

getIssuer

  • getIssuer(): string
  • Returns string

getLeeway

  • getLeeway(): number
  • Returns number

getNonceAlgorithm

  • getNonceAlgorithm(): string
  • Returns string

getPermissions

  • getPermissions(): string[]
  • Returns string[]

getSubject

  • getSubject(): string
  • Returns string

isIgnoreExpiration

  • isIgnoreExpiration(): boolean
  • Returns boolean

isNoTimestamp

  • isNoTimestamp(): boolean
  • Returns boolean

setAlgorithm

  • Parameters

    • algorithm: string

    Returns JWTOptions

setAudience

  • Parameters

    • audience: string[]

    Returns JWTOptions

setExpiresInMinutes

  • setExpiresInMinutes(expiresInMinutes: number): JWTOptions
  • Parameters

    • expiresInMinutes: number

    Returns JWTOptions

setExpiresInSeconds

  • setExpiresInSeconds(expiresInSeconds: number): JWTOptions
  • Parameters

    • expiresInSeconds: number

    Returns JWTOptions

setHeader

  • Parameters

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

    Returns JWTOptions

setIgnoreExpiration

  • setIgnoreExpiration(ignoreExpiration: boolean): JWTOptions
  • Parameters

    • ignoreExpiration: boolean

    Returns JWTOptions

setIssuer

  • Parameters

    • issuer: string

    Returns JWTOptions

setLeeway

  • Parameters

    • leeway: number

    Returns JWTOptions

setNoTimestamp

  • setNoTimestamp(noTimestamp: boolean): JWTOptions
  • Parameters

    • noTimestamp: boolean

    Returns JWTOptions

setNonceAlgorithm

  • setNonceAlgorithm(nonceAlgorithm: string): JWTOptions
  • Parameters

    • nonceAlgorithm: string

    Returns JWTOptions

setPermissions

  • setPermissions(permissions: string[]): JWTOptions
  • Parameters

    • permissions: string[]

    Returns JWTOptions

setSubject

  • Parameters

    • subject: string

    Returns JWTOptions

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc