You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I originally asked this question in discussions. It appears that there isn't currently support for this feature so I'd like to investigate whether I can contribute a solution for it.
Long story short, I want await getSession(ctx) to resolve an existing session if one is already set in the request cookies. Currently, it fetches a new token every time. This may be nice for some use cases, but I would like to avoid the latency overhead whenever possible.
Thank you @balazsorban44! I also found this method while testing and while it does not use HTTP to request the session, it will make a request for the token every time.
This adds noticeable latency to page transitions, especially when coupled with API requests. Do you think we should support the option to skip the token request when fetching an existing session?
Description 📓
I originally asked this question in discussions. It appears that there isn't currently support for this feature so I'd like to investigate whether I can contribute a solution for it.
Long story short, I want
await getSession(ctx)
to resolve an existing session if one is already set in the request cookies. Currently, it fetches a new token every time. This may be nice for some use cases, but I would like to avoid the latency overhead whenever possible.How to reproduce ☕️
See the related Q&A topic.
#3763
Contributing 🙌🏽
Yes, I am willing to help implement this feature in a PR
The text was updated successfully, but these errors were encountered: