mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-11-04 10:40:20 +00:00
fix(auth): revoke current access token session
This commit is contained in:
1 parent
fd46dffc34
commit
2df43ccdb0
4 files changed
+49
No files matched your search
@@ -402,6 +402,7 @@ export async function revokeCurrentSession(session: SessionState | null): Promis
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
...(session?.accessToken ? { Authorization: `Bearer ${session.accessToken}` } : {}),
|
||||
...(session?.authMode === 'web-cookie' ? { [WEB_SESSION_HEADER]: '1' } : {}),
|
||||
},
|
||||
body: body.toString(),
|
||||
|
||||
Reference in new issue
Block a user