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

  • The permissions of this token.

    Parameters

    • permissions: string

    Returns JWTOptions

addScope

  • Parameters

    • scopes: 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

getPermissions

  • getPermissions(): string
  • The permissions of this token.

    Returns string

getScopeDelimiter

  • getScopeDelimiter(): string
  • Returns string

getScopes

  • getScopes(): 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

setPermissions

  • The permissions of this token.

    Parameters

    • permissions: string

    Returns JWTOptions

setScopes

  • Parameters

    • scopes: string

    Returns JWTOptions

setSubject

  • Parameters

    • subject: string

    Returns JWTOptions

Generated using TypeDoc