# \`/userinfo\` endpoint in OIDC returns \`updated\_at\` field as a string

**URL:** <https://community.auth0.com/t/userinfo-endpoint-in-oidc-returns-updated-at-field-as-a-string/62754>\
**Category:** Get Help\
**Created:** [May 13, 2021, 6:03pm UTC](https://community.auth0.com/t/userinfo-endpoint-in-oidc-returns-updated-at-field-as-a-string/62754 "2021-05-13T18:03:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![glawler](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/glawler/32/13570_2.png) [@glawler](https://community.auth0.com/u/glawler)\
**Post date:** [May 13, 2021, 6:03pm UTC](https://community.auth0.com/t/userinfo-endpoint-in-oidc-returns-updated-at-field-as-a-string/62754/1 "2021-05-13T18:03:52Z")

</div>

Hello,

I’ve added an application to my auth0 tenent so I can verify identities via a third-party app. That is, I’m using Auth0 and the database of users I have in my Auth0 tenant to verify users via OIDC. (The third party app is Ory’s Kratos.)

As part of this, I’m hitting the `/userinfo` endpoint. The json returned contains things I expect and want, but the `updated_at` field given back is an RFC3339 formatted string instead of an int64. I expect an int64 as that’s in the standard and is documented by Auth0 itself here: [Authentication API Explorer](https://auth0.com/docs/api/authentication?http#get-user-info). The scope I’m requesting is `openid profile email`.

Here’s a sample of what I get back from Auth0:

```auto
{                                                           
  "sub": ...,                  
  "nickname": ...,                                    
  "name": ...,                                
  "picture": ..., 
 "updated_at": "2021-05-11T21:13:25.566Z",                  
 "email": ...,                                
 "email_verified": true                                     
}                                                           

```

This matters to me as I’m unmarshalling that JSON into a Claims struct that assumes `updated_at` is an int64.

Is this a bug in the auth0 implementation?

Thanks.

edit: Here’s an example in the Auth0 docs which shows the `updated_at` field as the RCF3339 formatted string: [Auth0.js v9 Reference](https://auth0.com/docs/libraries/auth0js#extract-the-authresult-and-get-user-info) What am I missing about the context of the differences in the `/userinfo` endpoints here?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 14, 2021, 12:14pm UTC](https://community.auth0.com/t/userinfo-endpoint-in-oidc-returns-updated-at-field-as-a-string/62754/4 "2021-05-14T12:14:54Z")

</div>

Hi @glawler,

You are right about the format of `updated_at`. It is a known issue that has been challenging to fix due to backward compatibility issues. You can read more about the context behind this in this related topic:

> [@OIDC ID Token claim updated\_at violates OIDC specification, breaks RP implementations](https://community.auth0.com/t/oidc-id-token-claim-updated-at-violates-oidc-specification-breaks-rp-implementations/24098/3):
>
> You’re right on all counts; the only issue is that software is complex, it’s written (still mostly) by humans and humans make mistakes. TL;DR If you have an issue related to updated\_at and need it to follow the specification then based on the information I found, for now we can enable a flag in the affected tenants in order for the response to be compliant. The long story, the service exists before OIDC specification were finalized and when we introduced the admin facing OIDC conformant toggl…

If your tenant is on a paid plan, you can open a support ticket to update this behavior so that an integer is returned for `updated_at`. Otherwise, you can send me a DM with your tenant name and I can request that update for your tenant.

---

<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:** [May 29, 2021, 3:01pm UTC](https://community.auth0.com/t/userinfo-endpoint-in-oidc-returns-updated-at-field-as-a-string/62754/6 "2021-05-29T15:01:30Z")

</div>

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