"use strict";
function encodeOAuthState(req) {
  if (typeof req.query.state !== "string") {
    return void 0;
  }
  const state = JSON.parse(req.query.state);
  return JSON.stringify(state);
}
exports.encodeOAuthState = encodeOAuthState;
