datasette-auth-github 1.0

Simon Willison's Weblog · 4d ago
Products & Tools API & Dev Tools

How-To How to actually use this

What changed: datasette-auth-github 1.0 fixes a bug where GitHub login sessions expired too quickly because cookies lacked a Max-Age parameter.

How to use it:

  1. Upgrade the plugin to version 1.0 on your Datasette instance.
  2. Verify that authenticated sessions now persist beyond a single browser session, especially on mobile Safari.
  3. Test the GitHub login flow to confirm cookies include a Max-Age attribute.

Good for: site operators running Datasette with GitHub authentication who need stable user sessions.

Release: datasette-auth-github 1.0 I run this GitHub login plugin on the agent.datasette.io demo site and I noticed that my authenticated sessions weren't lasting very long. It turned out that the plugin was setting cookies without a Max-Age parameter, so they were expiring at the end of a browser session (which in Mobile Safari seems to happen pretty often, independently of how you are using the…

Read original article on Simon Willison's Weblog →