# How to get gender using google signin

**URL:** <https://forum.freecodecamp.org/t/how-to-get-gender-using-google-signin/393500>\
**Category:** General\
**Created:** [May 24, 2020, 1:00pm UTC](https://forum.freecodecamp.org/t/how-to-get-gender-using-google-signin/393500 "2020-05-24T13:00:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SurajMishra](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@SurajMishra](https://forum.freecodecamp.org/u/SurajMishra)\
**Post date:** [May 24, 2020, 1:00pm UTC](https://forum.freecodecamp.org/t/how-to-get-gender-using-google-signin/393500/1 "2020-05-24T13:00:53Z")

</div>

I don’t understand how to get a user’s public gender using google signin.

Here’s the relevant permission - [https://developers.google.com/identity/protocols/oauth2/scopes](https://developers.google.com/identity/protocols/oauth2/scopes)

And i need this to request the gender permission - provider.addScope(‘[https://www.googleapis.com/auth/contacts.readonly](https://www.googleapis.com/auth/contacts.readonly)’);

I don’t understand what I am supposed to do next. I am using firebase.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:52pm UTC](https://forum.freecodecamp.org/t/how-to-get-gender-using-google-signin/393500/2 "2021-06-01T18:52:15Z")

</div>

Closed on June 1, 2021, 6:52pm UTC


