ethercorps / sk-redis-sessionmanager Goto Github PK
View Code? Open in Web Editor NEWRedis integration in SvelteKit for Session Management
Home Page: https://sk-vercel-ioredis.vercel.app/
License: MIT License
Redis integration in SvelteKit for Session Management
Home Page: https://sk-vercel-ioredis.vercel.app/
License: MIT License
The demo is broken -- I can't seem to login on your vercel app. Along with that do you have an example of your session.ts to use the upstash/redis on vercel. I can't seem to figure that out. Thanks
I believe this line of code need to be:
const sessionData = await this.redisClient.get(sessionId);
since the sessionId is already stored with the colon in redis:
Another option is to store the key without the left part of the colon: ghrVLf9Ge1ZSjo4ZtiVO4plA0Q47U5N7CFXF
in that example.
Otherwise it will try to find sk_ioredis_session:sk_ioredis_session:ghrVLf9Ge1ZSjo4ZtiVO4plA0Q47U5N7CFXF
, which it can't:
I'm currently on version 1.0.3
.
PS also check the other providers and functions
Whats the recommended way to update the data inside the cookie?
Should we just create a new one with the updated data?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.