Skip to content

fix: end the Logto session on sign-out - #45

Merged
m1ngsama merged 1 commit into
mainfrom
fix/logout-logto
Nov 18, 2026
Merged

m1ngsama merged 1 commit into
mainfrom
fix/logout-logto

Conversation

@m1ngsama

Copy link
Copy Markdown
Member

Signing out only cleared the Cloudflare Access session, so Logto signed the next visitor straight back in as the same account.

/logout now clears the Access session, returns to itself, then sends the browser to Logto's end-session endpoint. After that, signing in asks for an account again. This also signs the browser out of other NBTCA sites that use Logto.

Logto currently stops on its own "signed out" page, because https://card.nbtca.space/ is not a registered post-logout redirect URI for the Access client. Once it is registered, a follow-up can return users to card.

Refs #43

@m1ngsama
m1ngsama merged commit e43fb9b into main Nov 18, 2026
2 checks passed
@m1ngsama
m1ngsama deleted the fix/logout-logto branch November 18, 2026 13:50
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

Successfully merging this pull request may close these issues.

1 participant