mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
fix: get auth token for development (#4295)
This commit is contained in:
@@ -178,11 +178,11 @@ const OpenOAuthJwt = () => {
|
||||
}, [params]);
|
||||
const channel = schemaToChanel[schema as Schema];
|
||||
|
||||
if (!currentUser || !currentUser?.token?.token) {
|
||||
if (!currentUser || !currentUser?.token?.sessionToken) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const urlToOpen = `${schema}://oauth-jwt?token=${currentUser.token.token}`;
|
||||
const urlToOpen = `${schema}://oauth-jwt?token=${currentUser.token.sessionToken}`;
|
||||
|
||||
return <OpenAppImpl urlToOpen={urlToOpen} channel={channel} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user