Home Reference Source

Function

Static Public Summary
public

createSession(issuer: string, token: string, config: Object): Promise<Session>

Factory method for session creation

public

getAuthProviders(wacUri: string): Promise<ProviderInfo[]>

Allows obtaining the available providers enabled in the specified WAC instance

public

Factory method for session recovery

Static Public

public createSession(issuer: string, token: string, config: Object): Promise<Session> source

import {createSession} from '@quobis/sippojs'

Factory method for session creation

Params:

NameTypeAttributeDescription
issuer string

The authorization token issuer identifier

token string

The authorization token from the given issuer

config Object

Session configuration

config.wacUri string

The address where the WAC is available

config.applicationToken string

A token for the application

config.deviceId string

string which identifies the device this session belongs to

Return:

Promise<Session>

A promise of a new SippoJS session

public getAuthProviders(wacUri: string): Promise<ProviderInfo[]> source

import {getAuthProviders} from '@quobis/sippojs'

Allows obtaining the available providers enabled in the specified WAC instance

Params:

NameTypeAttributeDescription
wacUri string

The address where the WAC is available

Return:

Promise<ProviderInfo[]>

A promise with an array with information for each provider

public recoverSession(token: string, config: Object): Promise<Session> source

import {recoverSession} from '@quobis/sippojs'

Factory method for session recovery

Params:

NameTypeAttributeDescription
token string

The authorization token

config Object

Session configuration

config.wacUri string

The address where the WAC is available

config.applicationToken string

A token for the application

config.deviceId string

string which identifies the device this session belongs to

Return:

Promise<Session>

A promise of a new SippoJS session