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

Session expiration not working as expected #154

Closed
bcasci opened this issue Jul 1, 2023 · 2 comments
Closed

Session expiration not working as expected #154

bcasci opened this issue Jul 1, 2023 · 2 comments

Comments

@bcasci
Copy link
Contributor

bcasci commented Jul 1, 2023

I have the the timeout_at and expires_at set at the default settings. From
What I understand, this means the session is good for 1 year and a magic link is good for 1 hour. However when I am logged in, I am eventually asked to log back in after a time. What could I missing? Are sessions invalidated after a period of inactivity?

@mikker
Copy link
Owner

mikker commented Jul 6, 2023

Passwordless can't remember longer than Rails does. Did you try this?

#102 (comment)

1.0 should fix this by removing just controlling token expiration.

@bcasci
Copy link
Contributor Author

bcasci commented Jul 26, 2023

Yes...that was the missing link! Thank you. Oh, and remembering to restart the servers too ;). It's easy to over look this detail after years of using the typical Rails authentication libraries which generally obscure you from having to configure session options.

@bcasci bcasci closed this as completed Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants