# 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:** [December 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:** 4

<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:** [December 4, 2018, 1:31am UTC](https://meta.discourse.org/t/issues-with-custom-oauth-provider-user-id-of-access-token-being-set-to-nil/103316/4 "2018-12-04T01:31:33Z")

</div>

Here’s my updated authenticator plugin in case someone else needs something similar:

> <https://gist.github.com/danielvlopes/25f6fc621697d71f3247a11eb47effe8>

---

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