# Sign-in - Public: doesn't work as expected

**URL:** <https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230>\
**Category:** Ask for Help\
**Created:** [June 3, 2020, 12:35pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230 "2020-06-03T12:35:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![garrison](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/garrison/32/22059_2.png) [@garrison](https://community.glideapps.com/u/garrison)\
**Post date:** [June 3, 2020, 12:35pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/1 "2020-06-03T12:35:12Z")

</div>

Not sure if this is a bug but during our app’s development phase we had the sign-in status as PUBLIC.

We noticed that whenever we tried to Favourite an item, a pop up welcome screen appeared requesting us to sign-in.

Great! That’s what we expect to happen.

However, non-logged in users are able to use any of our contact forms where one of the ‘special values’ is the user’s email address.

This means that they are able to send an email message but it doesn’t capture their email address because our app is ‘Public’.

Like the request to sign-up whenever they try to favourite something, we should only allow them to use the contact forms if they sign-up.

The only solutions to this would be to either add an email field to the form (not ideal), or switch our sign-in status to ‘Public with email’ which defeats the purpose of our app which is simply to enable anyone to browse the content, but only be required to sign-up when they want/need to take some action, in this case add to favourites or use the contact forms.

As a Pro user it would be great if there was some option that enabled us to make it a requirement to sign-up to our app in order to use the contact forms.

---

<div class="post-metadata">

**Author:** ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)\
**Post date:** [June 3, 2020, 12:46pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/2 "2020-06-03T12:46:47Z")

</div>

Hi @garrison, have you tried using component visibility and user profiles?

Here is a post from @Jeff_Hager, specifically on [component visibility and user profiles](https://community.glideapps.com/t/trying-to-build-a-referral-system/9043/4).

---

<div class="post-metadata">

**Author:** ![garrison](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/garrison/32/22059_2.png) [@garrison](https://community.glideapps.com/u/garrison)\
**Post date:** [June 3, 2020, 12:53pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/3 "2020-06-03T12:53:04Z")

</div>

@nathanaelb: I’m looking into this now, thank you for sharing it.

It would be much better, for various reasons, to encourage users with a genuine intent to sign up to use this functionality, as it weeds out the time-wasters, scammers, spammers and other misfits.

---

<div class="post-metadata">

**Author:** ![garrison](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/garrison/32/22059_2.png) [@garrison](https://community.glideapps.com/u/garrison)\
**Post date:** [June 3, 2020, 3:01pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/4 "2020-06-03T15:01:57Z")

</div>

@nathanaelb: It seems that User Profiles is not a viable option for my use case as it requires my app to use [sign-in with email](https://community.glideapps.com/all/guides/quick-starts/getting-started/controlling-who-can-access-your-app), [email whitelist](https://community.glideapps.com/all/guides/quick-starts/getting-started/controlling-who-can-access-your-app) or belong to an [organization](https://community.glideapps.com/all/etc/organizations).

To be clear, our app should be visible to **Public** in order for anyone to easily browse our content.

They should only need to sign-up or login if they want to do any of the following actions:

1. Save items to favourites
2. Use a contact form to send communications

As it currently stands, only the first option works in Public mode. The other option doesn’t work at all as the forms allow anyone to send communication.

Making our app **Public with email** adds an unnecessary barrier to entry.

We are at a dead end here.

---

<div class="post-metadata">

**Author:** ![Christophe\_HK](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/christophe_hk/32/4161_2.png) [@Christophe\_HK](https://community.glideapps.com/u/Christophe_HK)\
**Post date:** [June 3, 2020, 3:17pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/5 "2020-06-03T15:17:51Z")

</div>

Build your app using the sign in with email or email whitelist, then, make it back to public. In order to display the log in form, add a tab in the app menu (you’ll get the hamburger menu containing the login form and the disconnect option).

This way, your app will be public, but your users will be able to sign in. And use the User profiles tab to ensure to be able to get them as “signed in users”. This way, you will be able to set the visibility condition for some of your components using the “is signed in user” condition.

---

<div class="post-metadata">

**Author:** ![garrison](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/garrison/32/22059_2.png) [@garrison](https://community.glideapps.com/u/garrison)\
**Post date:** [June 3, 2020, 3:38pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/6 "2020-06-03T15:38:58Z")

</div>

@Christophe_HK: Thank you, but the only problem is I have already built my app. Also, it is now a Pro app.

Will I need to start from scratch?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [June 3, 2020, 3:46pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/7 "2020-06-03T15:46:12Z")

</div>

I’m not 100%, but pretty sure user profiles will work on a public app. You may need to add something to the upper left menu to get to it, but it should work. Then only show the form button if the user profile email is not empty.

---

<div class="post-metadata">

**Author:** ![Christophe\_HK](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/christophe_hk/32/4161_2.png) [@Christophe\_HK](https://community.glideapps.com/u/Christophe_HK)\
**Post date:** [June 3, 2020, 3:53pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/8 "2020-06-03T15:53:41Z")

</div>

No, you’ll just need to add a visibility condition (… is signed in user) to the components you want visible to the signed in users only. Don’t restart from scratch, no need 😉

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [June 3, 2020, 4:26pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/9 "2020-06-03T16:26:41Z")

</div>

Just to be clear, @Christophe_HK and I are taking about two different methods. My option is probably safer long term and matches the first option in my referenced post. His is a little bit if a hack and locks down the app temporarily any time you have to make UI changes that involve ‘signed in user’, but opens up more options for settings by signed in user. Either way would work, but I just wanted to clarify that these are both two different methods to try with a public app.

---

<div class="post-metadata">

**Author:** ![garrison](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/garrison/32/22059_2.png) [@garrison](https://community.glideapps.com/u/garrison)\
**Post date:** [June 3, 2020, 6:30pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/10 "2020-06-03T18:30:17Z")

</div>

@Jeff_Hager & @Christophe_HK thanks guys, I’m going to try and digest both options and see which one will work in our case.

It’s annoying that this isn’t a core option in Glide.

---

<div class="post-metadata">

**Author:** ![garrison](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/garrison/32/22059_2.png) [@garrison](https://community.glideapps.com/u/garrison)\
**Post date:** [June 3, 2020, 6:46pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/11 "2020-06-03T18:46:38Z")

</div>

OK, so first I tried switching my app to Email Whitelist, this enabled me to set the visibility to the User Email component.

But after switching back to Public, I get the error message: Your current privacy settings do not support this filter.

So back to the drawing board.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [June 3, 2020, 7:50pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/12 "2020-06-03T19:50:08Z")

</div>

That’s the reason why @Christophe_HK’s option is a “hack”. It still works just fine a far as we have seen, even with the warning. (Trust me, he’s been all over this method and probably knows the ins and outs of it better than most)…but that’s why I’m not sure if it’s a long term viable solution and suggested the first option. The first option should work natively without any workarounds.

---

<div class="post-metadata">

**Author:** ![eltintero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eltintero/32/76520_2.png) [@eltintero](https://community.glideapps.com/u/eltintero)\
**Post date:** [June 3, 2020, 10:41pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/13 "2020-06-03T22:41:50Z")

</div>

> [@Jeff\_Hager](#):
>
> ver this method and probably knows the ins and outs of it better than most)…but that’s why I’m not sure

Wow, I thought this didn’t work! So glad you found out this.  
Will implement it in several apps ASAP!

If I understand correctly, users will sign in only when adding an item to favorites? Or at what other scenario do they sign in to a public app?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [June 6, 2020, 5:08pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/14 "2020-06-06T17:08:37Z")

</div>

> [@eltintero](#):
>
> Or at what other scenario do they sign in to a public app?

A user can sign into a public app through the upper left menu.

---

<div class="post-metadata">

**Author:** ![Coupons\_Deal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/coupons_deal/32/9734_2.png) [@Coupons\_Deal](https://community.glideapps.com/u/Coupons_Deal)\
**Post date:** [July 18, 2020, 7:43pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/15 "2020-07-18T19:43:08Z")

</div>

For Public apps the sign-in option only supports sign-in with PIN. Is it possible to support google or facebook login inside of PIN. Its annoying for user’s to login via PIN every time.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 18, 2020, 7:46pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/16 "2020-07-18T19:46:57Z")

</div>

Yes, Google is an option.

And the pin is only one time per user per device. Once you are signed on on that device, it should keep you signed in every time you open the app.

 ![Screenshot_20200718-144925](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/c/c61a7ca8cf010425f053805e5f9461af1f8f8cf9.png)

---

<div class="post-metadata">

**Author:** ![Coupons\_Deal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/coupons_deal/32/9734_2.png) [@Coupons\_Deal](https://community.glideapps.com/u/Coupons_Deal)\
**Post date:** [July 18, 2020, 7:50pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/17 "2020-07-18T19:50:42Z")

</div>

How? My app is Public. Sign-In option is there in Upper left menu which ask just ask for email and sends PIN.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 18, 2020, 7:52pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/18 "2020-07-18T19:52:54Z")

</div>

Try to set to public with email, select the Google checkbox, then flip it back to Public.

---

<div class="post-metadata">

**Author:** ![Coupons\_Deal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/coupons_deal/32/9734_2.png) [@Coupons\_Deal](https://community.glideapps.com/u/Coupons_Deal)\
**Post date:** [July 19, 2020, 7:36pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/19 "2020-07-19T19:36:17Z")

</div>

Tried this. When flip it back to Public and goes to Sign-In, it just shows Email Entry field. “Sign In with Google” is not there.

---

<div class="post-metadata">

**Author:** ![Lisa](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Lisa](https://community.glideapps.com/u/Lisa)\
**Post date:** [August 6, 2020, 1:56pm UTC](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230/20 "2020-08-06T13:56:35Z")

</div>

@Christophe_HK @Jeff_Hager I also built my app originally as Public with email before the sign-in button was released. I tried switching it to Public and the screen is completely blank 🙁

Am I missing something? Link below.

[https://hollow-jump-2891.glideapp.io/](https://hollow-jump-2891.glideapp.io/)

[Next page](https://community.glideapps.com/t/sign-in-public-doesnt-work-as-expected/10230.md?page=2)
