Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note on latest Epic Stack version #2

Open
PabloCorso opened this issue Aug 24, 2024 · 1 comment
Open

Note on latest Epic Stack version #2

PabloCorso opened this issue Aug 24, 2024 · 1 comment

Comments

@PabloCorso
Copy link

PabloCorso commented Aug 24, 2024

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 PabloCorso changed the title Note on latest epic-stack version Note on latest Epic Stack version Aug 24, 2024
@alan2207
Copy link
Owner

Awesome @PabloCorso , thanks for sharing! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants