использовать реагировать-родной-Google-Signin с пользовательским доменом - PullRequest
0 голосов
/ 25 сентября 2019

У меня есть вход в Google и веб-приложение для реагирования (android и ios).

Я могу войти на обеих платформах, но данные токена различаются (и из-за того, что приложение недействительно)

Я просмотрел документы и попробовал несколько параметров в разных полях, но безуспешно

Конфигурация приложения:

      // scopes: ['profile', 'email'], // it doesn't matter if commented or not
      // webClientId: '**********.apps.googleusercontent.com', //
      // offlineAccess: false, // if you want to access Google API on behalf of the user FROM YOUR SERVER
      // hostedDomain: 'https://securetoken.google.com/**********', // if I use this, (or other strings I tried, cant login
      // loginHint: '',
      forceConsentPrompt: true,
      accountName: '**********', // 
      // accountName: '**********:android:**********', // nothing happens
      iosClientId: '**********.apps.googleusercontent.com', // is different from the android one

веб-конфигурация (с помощью firebase):

      apiKey: "**********",
      authDomain: "**********.firebaseapp.com",
      databaseURL: "https://**********.firebaseio.com",
      projectId: "**********",
      storageBucket: "",
      2: "**********",
      appId: "**********:web:**********"

информация о веб-токене:

 {
    "iss": "https://securetoken.google.com/**********",
    "aud": "**********",
    "sub": "**********",
    "email": "**********@gmail.com",
    "email_verified": true,
    "name": "**********",
    "picture": "**********",
    "auth_time": 1568973313,
    "user_id": "**********",
    "sign_in_provider": "google.com",
    "iat": **********,
    "exp": **********,
    "firebase": {
      "identities": {
        "google.com": ["**********"],
        "email": ["**********@gmail.com"]
      }
    }
  }

информация о токене приложения:

 {
    "iss": "https://accounts.google.com",
    "azp": "**********.apps.googleusercontent.com",
    "aud": "**********.apps.googleusercontent.com",
    "sub": "**********",
    "email": "**********@gmail.com",
    "email_verified": true,
    "name": "**********",
    "picture": **********",
    "given_name": "**********",
    "family_name": "**********",
    "locale": "es",
    "iat": **********,
    "exp": **********
  }
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...