function decodeState(stateValue) {
  try {
    return JSON.parse(base64url.decode(stateValue));
  } catch (e) {
    return false;
  }
}
Decode a state value.

@param {string} stateValue

@return {object}