-
-
Notifications
You must be signed in to change notification settings - Fork 703
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
Ability to set ds_actor cookie such that it expires #829
Comments
I currently only decode the datasette/datasette/actor_auth_cookie.py Lines 5 to 12 in d828aba
If plugins want to be able to set their own policies on how long the |
Some options:
|
I'm going with {
"e": "1UuHoo",
"a": {"id": "root"}
} That |
And the |
Even shorter: encode an integer that is the difference between that expiry timestamp and a more recent epoch - June 1st 2020 will do.
|
I didn't bother with the alternative epoch - it only shaves off two or three bytes from the cookie. Documentation for the new |
I need this for
datasette-auth-github
: simonw/datasette-auth-github#62 (comment)The text was updated successfully, but these errors were encountered: