How to redirect to frontend from custom controller?

Im implementing a custom OAuth in strapi where a user login in frontend and then in backend i create a new user if non-existent and then i want to send the jwt token to frontend, but my issue is that ctx.redirect or ctx.response.redirect doesn’t work?

This topic has been created from a Discord post (1225496284316565705) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord