Skip to main content
← Data, API & Backend
Data, API & Backend August 16, 2022 Β· 11 replies

Hide or Show depending on log

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Hi there πŸ‘‹πŸΌ

I'm currently working with a Wordpress API and Firebase πŸ”₯

I want to configure firebase login and logout, nothing really hard. But I have one question, is it possible to show or hide parts of the app depending on an user logged in or not ? πŸ€”

To be clear, I need to show 3 pages only if an user is log so if I can't do that Imma be in some big trouble ☹️

Lemme know if you have any questions πŸ”Ž

Hugo 🌸

11 replies

Hugo August 22, 2022

Thanks for your answer Marta we decided to switch to a custom authentification, firebase wasn't the best choice for us !

Marta Serrano Bravo team August 22, 2022

Ok! Do you have any particular reason that rest of us can learn from?

Hugo August 22, 2022

Well we're using Wordpress and the API of Wordpress to link the app and firebase wasn't planned when we started so we find an easier solution and lighter one. With a custom authent JWT

Hugo August 22, 2022

But we still hace this problem about show or hide stuff depending on someone logged or not, I see no topic about this

Hugo August 22, 2022

Thanks for your reply, we cant use roles scopes unfortunaly but we're looking forward to implement some boolean to deal with conditionnal visibility

Marta Serrano Bravo team August 22, 2022

Ok! Let's see if that could help to your use case!πŸ™Œ
if you are missing any feature, please feel free to request it so we can see what we are missing for your use cases

Nadja October 8, 2022

Sorry, I cant help you but I have a similar question that Id like to make to the community. In my case Im using Firebase to authenticate my users and I want to show/hide an element in the page depending on the user who is logged in. For example, if Marta is logged in I wanna let her see the image X, but if Hugo is the user logged in the I dont wanna let him see this image. How can I do that? Ive already tried to read some tutorials and watch videos, but nothing is exactly what I need. :(

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord