Soumitra Dutta-How can I redirect users after login?

Hi Everyone, I am Soumitra Dutta an entrepreneur & photographer from Oxford. I’m looking for some advice on the best way to redirect users after they log in.

Right now, I’m trying to determine the most reliable and scalable approach. Do you redirect users based on their role, send them back to the page they originally wanted to access, or simply redirect everyone to a dashboard?

Regards

Soumitra Dutta

@soumitradutta
Hi! So this would depend on your specific use case. If you have an authenticated user but if they are authorised to go to a specific page then you redirect them there i.e. on the basis of the role. Or you can just redirect all users to a page that is authorised to be viewed by all. Rest of app is restricted via backend RLS policies and front end filters. I don’t think re-redirection needs any scale specific approach. Its just a workflow that would check authentication(JWT based) and just navigate the user to where you want to(Ask weweb AI or any AI on the workflow specifics of that and they’ll guide/make it for you).