Modifier

Share via


BrowserProtocolUtils class

Methods

extractBrowserRequestState(ICrypto, string)

Extracts the BrowserStateObject from the state string.

parseServerResponseFromHash(string)

Parses properties of server response from url hash

Method Details

extractBrowserRequestState(ICrypto, string)

Extracts the BrowserStateObject from the state string.

static function extractBrowserRequestState(browserCrypto: ICrypto, state: string): BrowserStateObject | null

Parameters

browserCrypto

ICrypto

state

string

Returns

parseServerResponseFromHash(string)

Parses properties of server response from url hash

static function parseServerResponseFromHash(locationHash: string): ServerAuthorizationCodeResponse

Parameters

locationHash

string

Hash from url

Returns

ServerAuthorizationCodeResponse