email: readEncryptedStateCookie()

in src/server/routes/signIn.ts [135:157]


					email: readEncryptedStateCookie(req)?.email,
				},
			}),
			pageTitle: 'Check Your Inbox',
		});
		res.type('html').send(html);
	},
);

router.post(
	'/signin/email-sent/resend',
	handleRecaptcha,
	handleAsyncErrors(async (req: Request, res: ResponseWithRequestState) => {
		const {
			queryParams: { appClientId },
		} = res.locals;

		try {
			const encryptedState = readEncryptedStateCookie(req);
			const { email } = encryptedState ?? {};

			if (typeof email == 'undefined') {
				throw new OktaError({