# Google maps api in lock file?

**URL:** <https://community.auth0.com/t/google-maps-api-in-lock-file/71586>\
**Category:** Get Help\
**Tags:** forum\
**Created:** [October 19, 2021, 1:53pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586 "2021-10-19T13:53:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerryforcode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerryforcode/32/32084_2.png) [@jerryforcode](https://community.auth0.com/u/jerryforcode)\
**Post date:** [October 19, 2021, 1:53pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586/1 "2021-10-19T13:53:41Z")

</div>

Hi there,

I am looking to implement an address autocomplete with Google maps and was wondering if it’s recommended to put the api key in the lock file.  
Lastly, wondering if there are any examples of this.

Thanks  
Jay

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 19, 2021, 2:00pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586/2 "2021-10-19T14:00:16Z")

</div>

Hey there!

Have you tried checking that document from Google?

> **[API security best practices  |  Google Maps Platform  | ...](https://developers.google.com/maps/api-security-best-practices)**
>
> Learn how to secure and manage your Google Maps Platform API keys.

It should provide you with tips on that!

---

<div class="post-metadata">

**Author:** ![jerryforcode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerryforcode/32/32084_2.png) [@jerryforcode](https://community.auth0.com/u/jerryforcode)\
**Post date:** [October 19, 2021, 2:32pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586/3 "2021-10-19T14:32:18Z")

</div>

Hi @konrad.sopala

Thanks for getting back to me.  
Question is around security of lock file if it’s a public file?  
Do you have examples of implementation?

Thanks

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 19, 2021, 2:45pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586/4 "2021-10-19T14:45:39Z")

</div>

What stack specifically are you using?

---

<div class="post-metadata">

**Author:** ![jerryforcode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerryforcode/32/32084_2.png) [@jerryforcode](https://community.auth0.com/u/jerryforcode)\
**Post date:** [October 19, 2021, 2:51pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586/5 "2021-10-19T14:51:08Z")

</div>

I am using Angular 12

---

<div class="post-metadata">

**Author:** ![jerryforcode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerryforcode/32/32084_2.png) [@jerryforcode](https://community.auth0.com/u/jerryforcode)\
**Post date:** [October 19, 2021, 10:10pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586/6 "2021-10-19T22:10:36Z")

</div>

@konrad.sopala forgot to tag you

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 20, 2021, 2:32pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586/7 "2021-10-20T14:32:17Z")

</div>

I researched our docs and SDKs and there’s nothing about storing API keys in lock file and to be honest I’ve never heard about people doing it. Why have you actually started considering it instead of doing it some other way?

---

<div class="post-metadata">

**Author:** ![jerryforcode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerryforcode/32/32084_2.png) [@jerryforcode](https://community.auth0.com/u/jerryforcode)\
**Post date:** [October 20, 2021, 2:55pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586/8 "2021-10-20T14:55:03Z")

</div>

I want to add a custom address field that uses Google maps api when a user signs up. I’m guessing I will have to use the SDK to build a custom sign up and login? @konrad.sopala

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 20, 2021, 2:57pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586/9 "2021-10-20T14:57:14Z")

</div>

Yes, that;s correct! How to do it with Lock:

> **[Custom Signup](https://auth0.com/docs/libraries/custom-signup)**
>
> How to customize the user signup form with additional fields using Lock or the Auth0 API.

---

<div class="post-metadata">

**Author:** ![jerryforcode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerryforcode/32/32084_2.png) [@jerryforcode](https://community.auth0.com/u/jerryforcode)\
**Post date:** [October 20, 2021, 3:15pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586/10 "2021-10-20T15:15:59Z")

</div>

@konrad.sopala a couple last questions… how can I reset my lock file ? And how can I get user info who’ve signed up/logged in via Google? Does that get registered in auth0 ?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 4, 2021, 3:16pm UTC](https://community.auth0.com/t/google-maps-api-in-lock-file/71586/11 "2021-11-04T15:16:26Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
