Comments (8)
Thank you very much for reporting the issue! I will take care about it and update the library very soon... probable today :)
from react-native-azure-auth.
Hi,
please try the version 1.3.9 and report what you get. It should either work again or throw another error.
from react-native-azure-auth.
I tried 1.3.9 i got this error
ExceptionsManager.js:126 Error in silent request: Error: Invalid id:
at normalizeId (baseTokenItem.js:17)
at Function.createAccessTokenKey (baseTokenItem.js:55)
at TokenCache.getAccessToken$ (cache.js:83)
at tryCatch (runtime.js:45)
at Generator.invoke [as _invoke] (runtime.js:271)
at Generator.prototype.<computed> [as next] (runtime.js:97)
at tryCatch (runtime.js:45)
at invoke (runtime.js:135)
at runtime.js:170
at tryCallTwo (core.js:45)
from react-native-azure-auth.
Perfect! It means you are calling the acquireTokenSilent()
with totally wrong userId
!
That's the only reason.
It should be String
See the docs
from react-native-azure-auth.
The normalizeId()
function checks the type of the ID
Look here
You see your reported error.
Earlier your problem was the same:
userId.toLowerCase
is not a function
i.e. - your userId
has another type as string
Try to debug the code.
from react-native-azure-auth.
Silent token is not working when token got expired. If it is not expired it is working fine
Is it still the case for the lib. v.1.3.9?
I suppose you should have the error with not expired token either.
I tried 1.3.9 i got this error
ExceptionsManager.js:126 Error in silent request: Error: Invalid id:
at normalizeId (baseTokenItem.js:17)
at Function.createAccessTokenKey (baseTokenItem.js:55)
at TokenCache.getAccessToken$ (cache.js:83)
Looks like you got the error with not expired token now. In 1.3.9 I have built in more input validations and now it does not work by you also for not expired token.
Most likely you have an object as userId
. Something like this:
{
userId: 'some id string'
}
The object could be serialized to JSON string and used as key for token cache, that's why it may worked before for not expired token...
Any way double check you input for acquireTokenSilent()
from react-native-azure-auth.
yes i am passing some wrong userId. You can close the issue
Thanks
from react-native-azure-auth.
Thank you for your feedback!
And good luck with your app :)
from react-native-azure-auth.
Related Issues (20)
- Authentication IOS: Network request failed with face ID (IOS)
- ClearSession WebView iOS error when closing HOT 2
- Azure MFA Network Failure on iOS HOT 3
- Logout Redirect issue HOT 5
- First login attempt always fails HOT 3
- Expo Support HOT 1
- Logout WebView Not Closing HOT 3
- AcquireTokenSilent not working HOT 1
- [iOS] - Popup name edit HOT 2
- AcquireTokenSilent error - [TypeError: Cannot read property 'accessToken' of null] HOT 8
- i cant able to sign out from azuare ad. am usseing this in react native web
- Hide the address bar HOT 4
- Not able to change the authorityUrl/issuer using the authorize method HOT 11
- Data dog Rum is supported react native web ? HOT 1
- ClearSession is showing prompt to Sign In when user wants to Logout in iOS HOT 8
- Login screen is blank
- Is it possible to obtain the accessToken in JWT format? HOT 1
- Account login in app with lib not show MFA, but login with safari have MFA
- android stuck on "continue", does nothing HOT 6
- I using redirect_uri = myapp://app when login auto bypass not show MFA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-azure-auth.