# Problems Authenticating with Fleek

**URL:** <https://forum.flow.com/t/problems-authenticating-with-fleek/2038>\
**Category:** 🛠 Developer Tools\
**Created:** [June 8, 2021, 9:19am UTC](https://forum.flow.com/t/problems-authenticating-with-fleek/2038 "2021-06-08T09:19:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillem](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@guillem](https://forum.flow.com/u/guillem)\
**Post date:** [June 8, 2021, 9:19am UTC](https://forum.flow.com/t/problems-authenticating-with-fleek/2038/1 "2021-06-08T09:19:25Z")

</div>

Hello there!

I’m trying to develop a webpage that interacts with the onFlow blockchain using Fleek as a deployment tool since I like the idea of using IPFS hosting and different possibilities that Fleek offers.

However, I’m trying to replicate the tutorial available at:  
[https://docs.onflow.org/flow-js-sdk/flow-app-quickstart](https://docs.onflow.org/flow-js-sdk/flow-app-quickstart)  
and the Authentication Cluster (the component that let’s the user log in using their wallet) doesn’t work. It gives the following error: Uncaught (in promise) TypeError: Failed to construct ‘URL’.

I thought that it was related to a bad URL construction due to the IPFS format, however I don’t understand where I could be making this mistake.

Any help would be much appreciated!  
Thanks!

---

<div class="post-metadata">

**Author:** ![guillem](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@guillem](https://forum.flow.com/u/guillem)\
**Post date:** [June 9, 2021, 8:22am UTC](https://forum.flow.com/t/problems-authenticating-with-fleek/2038/2 "2021-06-09T08:22:51Z")

</div>

Okay, so I just found the error and in fact is a bit stupid 😅

Just in case someone faces the same problem at some point, I’m going to leave a brief explanation:

The issue was that Wallet discovery (as well ass Access node and contract profile) is defines in “.env.local”. This constant is used during the auth process, so if the value is missing the process will fail. The problem here was that when I uploaded the code to do the deployment I forgot to include this file to the CD tool, in this case Fleek. Since fleek didn’t have access to the values, it couldn’t solve the different steps to authenticate the user.

Hope this helps if someone is faceing similar issues!
