How can I make a button in my app in which the user logs out?

I am using OAuth2.
I want a way in which the user click a button and it is forced to login again in the system.
Thank you in advance!

Salva.

1 Like

Howdy @smartinez !! Apologies for the delayed response here!!

I actually wrote up some examples of how to do this a while back. I hope it's helpful for you!

Three examples of how to do here:

It's worth noting that this uses an undocumented endpoint (/connect/__logout__), and in my case, an extra /rsc (which you probably need to remove :see_no_evil: ). Hopefully we will standardize / document this more formally in the future!

1 Like

Thank you so much! I will give it a try soon and come back here to see if I need some more help! I appreciate it!
Salva.

1 Like