diff --git a/src/aspects/token.ts b/src/aspects/token.ts index 709858a54..2b3477546 100644 --- a/src/aspects/token.ts +++ b/src/aspects/token.ts @@ -224,7 +224,7 @@ function autoMergeUser(context: BRC) { * @param user * @return tokenValue */ -async function setUpTokenAndUser( +export async function setUpTokenAndUser( env: WebEnv | WechatMpEnv | NativeEnv, context: BRC, entity: string, // 支持更多的登录渠道使用此函数创建token @@ -586,7 +586,7 @@ async function setupMobile(mobile: string, env: WebEnv | } } -async function loadTokenInfo(tokenValue: string, context: BRC) { +export async function loadTokenInfo(tokenValue: string, context: BRC) { return await context.select( 'token', {