Manual Reference Source Test
import IdentityCrossApp from 'src/modules/identity-crossapp.js'
public class | source

IdentityCrossApp

Identity SDK cross app helpers

Constructor Summary

Public Constructor
public

constructor(nativeController: Class)

Set a list of available cookie names

Method Summary

Public Methods
public

command(name: string, payload: Object): Error

Send command through the cross app bridge

public

Initialize the cross app bridge

public

on(name: string, callback: function): Error

Set callbacks

public

remove(token: string)

Remove all cross app user data from the iOS keychain

Public Constructors

public constructor(nativeController: Class) source

Set a list of available cookie names

Params:

NameTypeAttributeDescription
nativeController Class

Public Methods

public command(name: string, payload: Object): Error source

Send command through the cross app bridge

Params:

NameTypeAttributeDescription
name string

command name

payload Object

keychain options

Return:

Error

public init(): Promise source

Initialize the cross app bridge

Return:

Promise

public on(name: string, callback: function): Error source

Set callbacks

Params:

NameTypeAttributeDescription
name string
callback function

Return:

Error

Test:

public remove(token: string) source

Remove all cross app user data from the iOS keychain

Params:

NameTypeAttributeDescription
token string

IDM session token