fix: get auth token for development (#4295)

This commit is contained in:
Peng Xiao
2023-09-12 13:31:58 +08:00
committed by GitHub
parent 98429bf89e
commit fc76163dd1
8 changed files with 131 additions and 34 deletions

View File

@@ -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} />;
};