mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
feat(core): build config for ios android (#8555)
This commit is contained in:
@@ -50,8 +50,9 @@ function OAuthProvider({ provider }: { provider: OAuthProviderType }) {
|
||||
|
||||
const onClick = useCallback(() => {
|
||||
let oauthUrl =
|
||||
(BUILD_CONFIG.isElectron ? BUILD_CONFIG.serverUrlPrefix : '') +
|
||||
`/oauth/login?provider=${provider}`;
|
||||
(BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid
|
||||
? BUILD_CONFIG.serverUrlPrefix
|
||||
: '') + `/oauth/login?provider=${provider}`;
|
||||
|
||||
if (BUILD_CONFIG.isElectron) {
|
||||
oauthUrl += `&client=${appInfo?.schema}`;
|
||||
|
||||
Reference in New Issue
Block a user