# Issues with custom OAuth provider & user\_id of access\_token being set to nil

**URL:** <https://meta.discourse.org/t/issues-with-custom-oauth-provider-user-id-of-access-token-being-set-to-nil/103316>\
**Category:** Development\
**Created:** [3 בדצמבר,‏ 2018,‏ 2:59am UTC](https://meta.discourse.org/t/issues-with-custom-oauth-provider-user-id-of-access-token-being-set-to-nil/103316 "2018-12-03T02:59:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Daniel\_Lopes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel_lopes/32/374589_2.png) [@Daniel\_Lopes](https://meta.discourse.org/u/Daniel_Lopes)\
**Post date:** [3 בדצמבר,‏ 2018,‏ 5:06am UTC](https://meta.discourse.org/t/issues-with-custom-oauth-provider-user-id-of-access-token-being-set-to-nil/103316/3 "2018-12-03T05:06:54Z")

</div>

I found the error. I was expecting PluginStore to return a hash indexed by symbols but it’s actually index by strings. Doh!

Well, at least the code of my authenticator plugin can be useful to others.

---

_[View the full topic](https://meta.discourse.org/t/issues-with-custom-oauth-provider-user-id-of-access-token-being-set-to-nil/103316)._
