fix(auth): complete Keycloak logout flow

This commit is contained in:
2026-08-03 10:40:21 +08:00
parent 0e638046ed
commit 94142d7031
4 changed files with 143 additions and 2 deletions
@@ -94,6 +94,9 @@ const authOptions: NextAuthOptions = {
if (account.refresh_token) {
token.refreshToken = account.refresh_token;
}
if (account.id_token) {
token.idToken = account.id_token;
}
if (typeof account.expires_at === "number") {
token.accessTokenExpires = account.expires_at * 1000;
}