UNPKG

payload-zitadel-plugin

Version:

plugin for Payload CMS, which enables authentication via Zitadel IdP

7 lines (6 loc) 267 B
export const getState = (req)=>Object.fromEntries(new URLSearchParams(atob(req.query.state ?? ''))); export const createState = (req, invokedBy)=>btoa(new URLSearchParams({ ...req.query, invokedBy }).toString()); //# sourceMappingURL=state.js.map