fix: signout account when logging through oauth signin via desktop (#4321)

This commit is contained in:
Peng Xiao
2023-09-13 10:10:03 +08:00
committed by GitHub
parent 7d6c150ecd
commit 9ec2b9cf51
4 changed files with 23 additions and 15 deletions

View File

@@ -59,7 +59,7 @@ async function handleAffineUrl(url: string) {
logger.info('handle affine schema action', urlObj.hostname);
// handle more actions here
// hostname is the action name
if (urlObj.hostname === 'oauth-jwt') {
if (urlObj.hostname === 'signin-redirect') {
await handleOauthJwt(url);
}
}