BrowserProtocolUtils class
Methods
extract |
Extracts the BrowserStateObject from the state string. |
parse |
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
BrowserStateObject | null
parseServerResponseFromHash(string)
Parses properties of server response from url hash
static function parseServerResponseFromHash(locationHash: string): ServerAuthorizationCodeResponse
Parameters
- locationHash
-
string
Hash from url
Returns
ServerAuthorizationCodeResponse