sidebase / nuxt-session

Nuxt session middleware to get a persistent session per app user, e.g., to store data across multiple requests. The nuxt session module provides the useSession() composable out of the box and sets up API endpoints to interact with your session to make working with sessions feel like a breeze.
https://sidebase.io/nuxt-session/
MIT License
189 stars 19 forks source link

Refactor import and use of argon2 #31

Closed Voltra closed 1 year ago

Voltra commented 1 year ago

Now follows the proper usage described in https://github.com/ranisalt/node-argon2#typescript-usage

Closes #30 .

JacobArrow commented 1 year ago

Just tested this and it seems to work, but I'm still getting an error: ERROR Vue app aliases are not allowed in server routes. [importing #app from node_modules/@sidebase/nuxt-session/dist/runtime/server/middleware/session/ipPinning.mjs]

Voltra commented 1 year ago

Just tested this and it seems to work, but I'm still getting an error: ERROR Vue app aliases are not allowed in server routes. [importing #app from node_modules/@sidebase/nuxt-session/dist/runtime/server/middleware/session/ipPinning.mjs]

I'm not well versed in the nuxt+vite magic, but this should do the trick

BracketJohn commented 1 year ago

Thanks @Voltra for the quick help here! @JacobArrow, were you already able to confirm that it works now? Would love to push out this fix soon 💯

JacobArrow commented 1 year ago

I just tested again and everything seems to work as expected Thank you @Voltra !

BracketJohn commented 1 year ago

Fix is merged, release is done, check out:

@JacobArrow please do write here / in the issue if the bug persists ❤️

Thanks again for everybody involved, you're awesome 💯