I’m currently working with the “@inrupt/solid-client-authn-node” library. I’m developing a sort of middleware server, that after an authentication stores the session of the login in memory.
The way in which i’m executing the login is by using
The login actually works fine, but i’dont’ know how to manually store the Session object retrived from the process, in the session memory, in order to fetch the next calls.
Thank you for your help!
They then get injected via the sessionOptions.storage option to the Session constructor, or, via secureStorage and insecureStorage options, if you wish to split them
Can you elaborate more on this? I know you mentioned it’s not easy, and I’m not all that experienced so
I am currently working with solid-client-authn-node and have a middleware working in SvelteKit but getSessionFromStorage(sessionId) alone is painfully slow (1.7s on my localhost, and 0.7s on host).
After digging a bit I noticed IStorage and InMemoryStorage and assume reason my auth is slow cause I’m not passing in a storage option?
I’m not sure what could cause this delay. I’m using following code to store session in a json file (still a WIP but it works to reuse sessions). You can try and see if you have the same problem using this: