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

Create trpc mutation procedure to refresh the session (reset to 30 days) #40

Open
jpraissman opened this issue Jan 19, 2025 · 0 comments · May be fixed by #98
Open

Create trpc mutation procedure to refresh the session (reset to 30 days) #40

jpraissman opened this issue Jan 19, 2025 · 0 comments · May be fixed by #98

Comments

@jpraissman
Copy link
Collaborator

When we load a session client side, we should refresh the session if there are fewer than 29 days remaining.

Note that this will be a client-side activated procedure because we cannot set cookies while rendering in Next.js

We can also add this logic to the middleware authenticatedProcedureBuilder --ensure this only runs on POST requests

@owens1127 owens1127 removed the dev label Jan 19, 2025
@owens1127 owens1127 self-assigned this Jan 31, 2025
@owens1127 owens1127 linked a pull request Feb 2, 2025 that will close this issue
14 tasks
@owens1127 owens1127 linked a pull request Feb 2, 2025 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants