Log Out Button ai2

I have an accounts system for my app in AI2 but I want to know how to make a log out button? I've noticed making a button that redirects to the sign in obviously doesn't work, and I'm stumped on how to make an actual log out button that actually logs you out. I've created these accounts with firebase.

Are you trying to log out of your app or logout a user from firebase?

1 Like

Hello AAA

Something like this?

blocks

1 Like

Thanks!

Specifically log out a user from firebase, but I wouldn't mind if it logged out a user from the app.

There is no method with the Firebase REST api to sign out a user. It is possible if you run your firebase config in a web page using javascript

but it is probably easier just to remove access to the database in the app.

3 Likes