Import apps/android/src/services/login/oauth-channel.ts

This commit is contained in:
QQ 2026-11-14 14:18:04 +08:00
parent 93c09e8d81
commit 7def8f5303
1 changed files with 20 additions and 0 deletions

View File

@ -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,
})