diff --git a/apps/android/src/services/login/oauth-channel.ts b/apps/android/src/services/login/oauth-channel.ts new file mode 100644 index 0000000..95e1cce --- /dev/null +++ b/apps/android/src/services/login/oauth-channel.ts @@ -0,0 +1,20 @@ +import { strings as zhCN } from '../../locales/i18n' +import { createOAuthRedirectChannel } from './oauth-redirect-channel' + +export const oauthLoginChannel = createOAuthRedirectChannel({ + method: 'oauth', + providerId: 'zhihu', + unsupportedError: zhCN.runtime.zhihuUnsupported, +}) + +export const githubOAuthLoginChannel = createOAuthRedirectChannel({ + method: 'github-oauth', + providerId: 'github', + unsupportedError: zhCN.runtime.githubUnsupported, +}) + +export const googleOAuthLoginChannel = createOAuthRedirectChannel({ + method: 'google-oauth', + providerId: 'google', + unsupportedError: zhCN.runtime.googleUnsupported, +})