Classes
Members
-
<static> bearerToken
-
Returns
Details
-
<static> csrfToken
-
Returns
Details
Methods
-
<static> messageListener( request, sender, response )
-
Description
Handle incoming messages from other parts of the extension. This module will respond to requests whose body is
{tokens: true}
(any truthy value works).Parameters
Name Type Description request
object message request body
Name Type Description tokens
* request authentication bearer and csrf tokens
sender
object message sender info; populated by browser
response
function callback function; response message will be returned over this callback
Details
-
<static> parseHeader()
-
Description
match request headers
Details
-
<static> getTheTokens( details )
-
Description
Capture the tokens on the fly
Parameters
Name Type Description details
Object webRequest object
Details