GetRoles function does not call with old session Cookie and new service
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When using the GetRoles function, the service doesn't call it when the user has the session cookie, but new deployment pushed.
Causing the user to lose all his roles until signs in again.
**To Reproduce**
Steps to reproduce the behavior:
1. Sign in with a user that has a custom role with GetRoles function.
2. Confirm that the user is authorized with the custom role.
3. Deploy a new version of the Azure Static Web App.
4. Navigate to the app.
5. The user is authenticated but the custom role has been removed. (issue)
6. Sign out and sign in again - the user got his roles again.
**Expected behavior**
The roles will remain, maybe by calling GetRoles again.
**Screenshots**
**Device info (if applicable):**
- OS: Windows 11
- Browser Edge
- Version 99
**Additional context**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.