Skip to main content
Ask a Question
Frances Silva
Lead Developer
Asked a question 4 months ago

How to log someone out of tribe from our site when using JWT? Clicking the logout from Tribe works on both platforms, but logging out of our site obviously doesn’t work on tribe. Is there a URL I can redirect them to or some way of doing it through the API?

Where am I?

In Tribe you can ask and answer questions and share your experience with others!

Hi Jonathan8 and Frances Silva10 ,

The route that we need to use in this case is /api/v1/logout . You need to send the user to this route and pass ?redirect= alongside it. This will first land users in the community and redirect them to the URL provided in redirect= . Users won't notice anything in this case.

Hope this helps!