From 7def8f5303457a8008ac93ab7fee7072bf95ea8a Mon Sep 17 00:00:00 2001 From: QQ Date: Sat, 14 Nov 2026 14:18:04 +0800 Subject: [PATCH] Import apps/android/src/services/login/oauth-channel.ts --- .../src/services/login/oauth-channel.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 apps/android/src/services/login/oauth-channel.ts 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, +})