0
const createUser = gql` 
mutation ($idToken: String!)
{ 
  createUser(authProvider: 
    {
       auth0: {idToken: $idToken}}) { id 
    } 
}
 `

https://github.com/auth0/react-native-lock 我无法输入 idToken 因为该库已被弃用。我如何获得 Id 令牌

4

1 回答 1

0

react-native-lock 已弃用,您需要使用 [react-native-auth0] ( https://github.com/auth0/react-native-auth0 )

您可以检查 api 调用的源代码

哪个是

https://auth0.com/docs/api/authentication?http#authorization-code-grant-pkce-

https://auth0.com/docs/api/authentication?http#authorization-code-pkce-

于 2017-11-02T02:44:00.733 回答