109
Views
1
Comments
Why is the nr1 authentication cookie being deleted?
Question
Application Type
Mobile

In our mobile app, we have been seeing a lot of "registered role required" errors on app resume; our OnException security exception handler redirects to the splash screen to attempt a login and/or send the anonymous user to the login screen. This has resulted in a weird experience where users seeing the splash screen very often.

The only way to reproduce the issue that we've found is to delete the nr1<User Provider Name> cookie (as described here) and reopen the app from the background/inactive state. Immediately I see the error and am redirected to the splash screen.

I tested with the other cookies (e.g., nr2) and those will log the user out entirely. This seems to be an issue specific to the nr1 cookie. The expiration is 365 days so we don't think it's related to that. I also dug through the code and found no places where we manually remove any cookies.

Are there any known issues with this cookie? Do you know how/why it might be getting deleted? Thanks!

2025-01-12 10-53-58
MatheusLima

Do you have some deep link? 

Because other behavior that do this exception "registered role required", can appear when it redirect for a internal screen in your app, and the user are not logged in.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.