FormidableLabs / react-native-app-auth

React native bridge for AppAuth - an SDK for communicating with OAuth2 providers

Home Page:https://commerce.nearform.com/open-source/react-native-app-auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scopes array & accessTokenExpirationDate are empty in response

dimitris4 opened this issue · comments

Issue

config:

const config = {
      issuer: 'https://login.microsoftonline.com/<tenant id>',
      clientId: <client id>,
      redirectUrl: 'msauth.<bundle id>://auth/',
      scopes: ['user.read', 'profile', 'email'],
};

authorize function returns the following response:

refreshToken  =  0.AQkAF ... xT2Yag
scopes  =  [ ]
accessToken  =  eyJ0eXAi ... ozxOJP
idToken  = eyJ0eX ... iuM9
tokenAdditionalParameters  =  {"expires_in": "4967", "expires_on": "1704303673", "ext_expires_in": "4967", "not_before": "1704298405", "resource": "00000002-0000-0000-c000-000000000000"}
tokenType  =  Bearer
authorizeAdditionalParameters  =  {"session_state": "09538fc4-c801-438f-baa1-0c6eb58b87e1"}
accessTokenExpirationDate  = 

Scopes array and accessTokenExpirationDate are empty. Why?

Permissions in Azure:
Screenshot 2024-01-03 at 17 22 58

Environment

Identity Provider: Azure / iOS / Access Tokens
Platform: iOS
React-native Version: 0.72.6
react-native-app-auth Version: ^7.1.0
Are you using Expo?: No