Skip to content

Kicking users to login screen based on state? #1805

Answered by jamonholmgren
WalrusSoup asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @WalrusSoup! Good question.

From a user experience standpoint, it makes sense to show a screen (modal or otherwise) that indicates they've been logged out and need to log in again. Something like how Gmail will show you an intermediate screen when you've been logged out.

We often have an API service object (see this:

if (!response.ok) {
const problem = getGeneralApiProblem(response)
if (problem) return problem
}
) which allows you to handle errors at that boundary. However, I'm not particularly happy with how that is set up, and want to find a cleaner solution.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jamonholmgren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants