krapio
Library referenceFunctions

parseCallback()

function parseCallback(url, expectedState): OAuthCallback;

reads the query of a redirect back to your redirect uri and checks state before anything else. throws KrunkerOAuthError when the state is not expectedState or the redirect carries an error; the status of an approval is a hint only, read the outcome with actions.get(actionId)

Parameters

ParameterType
urlstring | URL | URLSearchParams
expectedStatestring

Returns

OAuthCallback

On this page