Access Denied. You were logout 'Refresh'

We are using discourse in react-native-web-view with some of the APIs to login, create user and notification to show in app redirect to discourse when user opens it.

There is a behavior that has been puzzling us:
User tap on the notification
(We redirect user to notification tab by this URL:
When the page loads it says Access denied. But when you tap anywhere in the webview it takes you to login page and then after some time to notifications tab automatically.

Somewhat same thing happens with a user who recently joined the community.