# Local Dev | How to sign in with Dev Wallet?

**URL:** <https://forum.flow.com/t/local-dev-how-to-sign-in-with-dev-wallet/1929>\
**Category:** Flow JavaScript SDK\
**Tags:** flow-sdk-js\
**Created:** [May 16, 2021, 1:55pm UTC](https://forum.flow.com/t/local-dev-how-to-sign-in-with-dev-wallet/1929 "2021-05-16T13:55:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anders](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anders](https://forum.flow.com/u/anders)\
**Post date:** [May 16, 2021, 1:55pm UTC](https://forum.flow.com/t/local-dev-how-to-sign-in-with-dev-wallet/1929/1 "2021-05-16T13:55:55Z")

</div>

Hey guys,  
I am having trouble getting setup with local development. I have the emulator running locally (latest version as of 2021-May-16) and I cloned the “Harness” repo to tryout signing in/out locally.

I can run scripts from the Harness page, but signing in does not work. See errors below.

I did update the config in the root.js file to reflect the output of the Dev Wallet start log.

From **root.js**

```
  fcl.config()
    .put("env", "local")
    .put("accessNode.api", "http://localhost:8080")
    .put("discovery.wallet", " http://localhost:8701/flow/authenticate")
    .put("challenge.handshake", " http://localhost:8701/flow/authenticate")

```

Output when starting local wallet

```
$ yarn run dev-wallet
yarn run v1.22.4
$ FLOW_ACCOUNT_ADDRESS=0xf8d6e0586b0a20c7 PK=f8e188e8af0b8b414be59c4a1a15cc666c898fb34d94156e9b51e18bfde754a5 fcl-wallet
@onflow/dev-wallet@0.0.10
******  ******  ****** ***

🎉 FCL Dev Wallet has started:
* Origin: http://localhost:8701
* FCL Authn: http://localhost:8701/flow/authenticate
* GraphiQL: http://localhost:8701/graphql
* Access Node: http://localhost:8080
* Service Address: 01
* Private Key: f8e188e8af0b8b414be59c4a1a15cc666c898fb34d94156e9b51e18bfde754a5

Include this code in development to configure fcl:

import * as fcl from "@onflow/fcl"

fcl.config()
  .put("challenge.handshake", "http://localhost:8701/flow/authenticate")

******  ******  ****** ***
GQL -- query/config
GQL -- mutation/authenticate { email: 'aw@bc.de', pass: 'abc123' }
GQL -- query/config
GQL -- mutation/authenticate { email: 'abc@de.de', pass: 'abc123' }

```

Repo: [https://github.com/orodio/harness](https://github.com/orodio/harness)

**Error**  
`* could not find account with address 0000000000000001`

In the browser console (Chrome, on MacOSX) I get the following error

```
Uncaught (in promise) TypeError: Cannot read property 'sessionId' of null
    at Object.authenticate [as click] (flow-authenticate.js:44)

```

 ![image](https://us1.discourse-cdn.com/flex022/uploads/flow/original/1X/74dd84e2cd2362f8ba1b3c8c09a9cc170f75fbc0.png)

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [May 18, 2021, 7:03pm UTC](https://forum.flow.com/t/local-dev-how-to-sign-in-with-dev-wallet/1929/2 "2021-05-18T19:03:28Z")

</div>

@gregsantos @JeffreyDoyle Can you help answer the question here?

---

<div class="post-metadata">

**Author:** ![gregsantos](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/gregsantos/32/427_2.png) [@gregsantos](https://forum.flow.com/u/gregsantos)\
**Post date:** [May 19, 2021, 4:11pm UTC](https://forum.flow.com/t/local-dev-how-to-sign-in-with-dev-wallet/1929/3 "2021-05-19T16:11:19Z")

</div>

It looks like you’ve implemented your own user/pw authentication.  
Are you able to Log In via the Dev Wallet using fcl.authenticate and the default config?

---

<div class="post-metadata">

**Author:** ![Mackenzie](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Mackenzie](https://forum.flow.com/u/Mackenzie)\
**Post date:** [May 19, 2021, 8:03pm UTC](https://forum.flow.com/t/local-dev-how-to-sign-in-with-dev-wallet/1929/4 "2021-05-19T20:03:51Z")

</div>

By the looks of it there is a mismatch between what the cli output says and what is actually in the code.

I believe the correct configuration would be:

```auto
 fcl.config()
    .put("env", "local")
    .put("accessNode.api", "http://localhost:8080")
    .put("discovery.wallet", "http://localhost:8701/fcl/authn")
    .put("challenge.handshake", "http://localhost:8701/fcl/authn")

```

Reference implementation here:

> <https://github.com/orodio/harness/blob/main/src/root.js#L27>

---

<div class="post-metadata">

**Author:** ![qvvg](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/qvvg/32/78_2.png) [@qvvg](https://forum.flow.com/u/qvvg)\
**Post date:** [May 20, 2021, 4:24pm UTC](https://forum.flow.com/t/local-dev-how-to-sign-in-with-dev-wallet/1929/5 "2021-05-20T16:24:06Z")

</div>

You are using the older dev wallet.  
You can find the new one here: [GitHub - onflow/fcl-dev-wallet: A FCL Dev Wallet to be used with the Flow Emulator](https://github.com/onflow/fcl-dev-wallet)

---

<div class="post-metadata">

**Author:** ![anders](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anders](https://forum.flow.com/u/anders)\
**Post date:** [May 23, 2021, 8:48am UTC](https://forum.flow.com/t/local-dev-how-to-sign-in-with-dev-wallet/1929/6 "2021-05-23T08:48:00Z")

</div>

Thanks. In the end, it was due to a misconfiguration I believe.

I found this repo, which added a critical part of information. Now it works! Thanks for replying!

> **[portto/fcl-demo](https://github.com/portto/fcl-demo)**
>
> Demo DApp on Flow. Contribute to portto/fcl-demo development by creating an account on GitHub.
