小编kac*_*tel的帖子

Expo AuthSession 立即解析为 "dismiss"ed

我正在使用 Expo 的AuthSession模块登录 Auth0:

    let result = await AuthSession.startAsync({
      authUrl: `${auth0Domain}/authorize?` + qs.stringify({
        client_id: auth0ClientId,
        response_type: 'code',
        scope: 'openid profile email offline_access',
        redirect_uri: redirectUrl,
        code_challenge_method: 'S256',
        code_verifier: codeVerifier,
        state: oAuthState,
        audience: auth0Audience
      })
    })

    if (result.type === 'success') {
      ...
    } else if (
      result.type === 'dismiss' ||
      (result.type === 'error' && result.errorCode === 'login-declined')
    ) {
      // FIXME: alert never pops without delay here, despite the if correctly evaluating true
      // Any way to check if the …
Run Code Online (Sandbox Code Playgroud)

auth0 react-native react-native-android expo

6
推荐指数
1
解决办法
872
查看次数

标签 统计

auth0 ×1

expo ×1

react-native ×1

react-native-android ×1