# Auth broken in spaces but not locally

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauth-broken-in-spaces-but-not-locally%2F60073%3E%5C
**Category:** 🔒 Gradio\
**Created:** [October 26, 2023, 7:37pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauth-broken-in-spaces-but-not-locally%2F60073 "2023-10-26T19:37:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesredd](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jamesredd](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjamesredd)%5C
**Post date:** [October 26, 2023, 7:37pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauth-broken-in-spaces-but-not-locally%2F60073%2F1 "2023-10-26T19:37:20Z")

</div>

When I run my app locally, it renders as I’d expect, and I’m able to log in via setting the env variable.

However, when I upload this exact same code to spaces, it looks like this, and I’m unable to log in:

 ![Screen Shot 2023-10-26 at 12.36.11 PM](https://us1.discourse-cdn.com/hellohellohello/original/3X/8/f/8fb4a3d626cc00853c76964ba2fd12488db112e6.png)

It occurs on both Chrome and Safari.  
Has anyone else seen this before? Thanks!

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [October 27, 2023, 6:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauth-broken-in-spaces-but-not-locally%2F60073%2F2 "2023-10-27T18:27:51Z")

</div>

hi @jamesredd, is it a Gradio App? could you please share more? maybe a link to the Space? thanks

---

<div class="post-metadata">

**Author:** ![jamesredd](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jamesredd](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjamesredd)%5C
**Post date:** [October 27, 2023, 7:01pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauth-broken-in-spaces-but-not-locally%2F60073%2F3 "2023-10-27T19:01:41Z")

</div>

Hi radames, yes, it’s a gradio app, here’s a link to the space: [Snaplinc EU CRSD - a Hugging Face Space by jamesredd](https://huggingface.co/spaces/jamesredd/document_analysis)

---

<div class="post-metadata">

**Author:** ![jamesredd](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jamesredd](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjamesredd)%5C
**Post date:** [October 27, 2023, 7:02pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauth-broken-in-spaces-but-not-locally%2F60073%2F4 "2023-10-27T19:02:31Z")

</div>

Another bug - it’s showing the space preview as Snaplink EU CSRD, another one of my spaces, even though the space is just “document analysis”

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [October 27, 2023, 7:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauth-broken-in-spaces-but-not-locally%2F60073%2F5 "2023-10-27T19:20:18Z")

</div>

hi I think it’s a Gradio issue, cc @abidlabs @freddyaboulton

here without URL params it works  
 → [https://jamesredd-document-analysis.hf.space/](https://jamesredd-document-analysis.hf.space/)

but with extra params it breaks the css theme  
 → [https://jamesredd-document-analysis.hf.space/?\_\_theme=system](https://jamesredd-document-analysis.hf.space/?__theme=system)
