Import apps/android/src/services/login/oauth-channel.ts
This commit is contained in:
parent
93c09e8d81
commit
7def8f5303
|
|
@ -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,
|
||||||
|
})
|
||||||
Loading…
Reference in New Issue