Skip to content

Redirect all authenticated routes until user completes profile #4606

Answered by BatuhanW
markpatx asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @markpatx sorry for the late response, it seems your question is overlooked among others.

I think you can utilize check method of AuthProvider, for example, if there is no user at all, you can redirect to login page but if there is a user but didn't complete profile, you can redirect to profile page conditionally.

https://refine.dev/docs/api-reference/core/providers/auth-provider/#check

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BatuhanW
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