epic-stack-with-user-impersonation
epic-stack-with-user-impersonation copied to clipboard
Note on latest Epic Stack version
Thank you @alan2207 for the fantastic example!
Here's a quick note for compatibility with the latest version of the Epic Stack:
I needed to update the /impersonate route by replacing authenticator.sessionKey with sessionKey from '#app/utils/auth.server.ts'. Here's how the change looks:
// Original
const currentSessionId = cookieSession.get(authenticator.sessionKey);
// Updated
import { sessionKey } from '#app/utils/auth.server.ts';
const currentSessionId = cookieSession.get(sessionKey);
Thanks again!