You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] LEAR Update - Business Dashboard shows "Session Expired" when the user just doesn't have access to the business #35669
When a logged in user opens the business dashboard for a business their account is not affiliated with, the api now returns 401 (new auth tightening, bcgov/lear#4975). The dashboard treats every 401 as an expired login and shows the "Session Expired" modal with a Log In button. The user is still logged in, so logging in again just brings the same modal back.
Expected: show the existing "Access Restricted" dialog (you don't have permission, go to your Business Registry Dashboard), and only show "Session Expired" when the token is actually expired.
Notes: only visible in dev/test right now because the authV2Business flag is off in prod. Should be fixed before that flag is turned on in prod. Came from the Session Expired modal added in #27019 when a 401 could only mean expired token.
changed the title [-][BUG] Business Dashboard shows "Session Expired" when the user just doesn't have access to the business[/-][+][BUG] LEAR Update - Business Dashboard shows "Session Expired" when the user just doesn't have access to the business[/+]on Dec 1, 2026
Activity
mstanton1 commentedon Dec 1, 2026
LEAR side of things enforce "403 error" on this type of error response.
UI Ticket to be created to ensure proper error response is shown on the UI.
[-][BUG] Business Dashboard shows "Session Expired" when the user just doesn't have access to the business[/-][+][BUG] LEAR Update - Business Dashboard shows "Session Expired" when the user just doesn't have access to the business[/+]