epic-stack-with-user-impersonation icon indicating copy to clipboard operation
epic-stack-with-user-impersonation copied to clipboard

Note on latest Epic Stack version

Open PabloCorso opened this issue 1 year ago • 1 comments

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!

PabloCorso avatar Aug 24 '24 14:08 PabloCorso