Home Reference Source Repository
import {Jwt} from 'ingresse-sdk/src/auth/jwt.js'
public class | source

Jwt

Extends:

Authentication → Jwt

Static Method Summary

Static Public Methods
public static

Authentication type e.g.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Method Summary

Public Methods
public

Get formatted authentication settings

public

Get Jwt authentication token value

public

setToken(token: string)

Set Jwt authentication token value

Inherited Summary

From class Authentication
public get

Get authentication data

public set

authData(data: object | string): *

Set authentication data

Static Public Methods

public static type(): string source

Authentication type e.g. Jwt, BasicAuth

Return:

string

Public Constructors

public constructor() source

Public Members

public authData: string source

Set authentication data

Override:

Authentication#authData

Public Methods

public getSettings(): object source

Get formatted authentication settings

Return:

object

public getToken(): string source

Get Jwt authentication token value

Return:

string

Example:

ingresse.ticket.auth.getToken();

public setToken(token: string) source

Set Jwt authentication token value

Params:

NameTypeAttributeDescription
token string

JWT Token value

Example:

ingresse.ticket.auth.setToken('12345.67890.1234');