<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Can we add more information to the access token response we get during the OAuth flow?]]></title><description><![CDATA[<p dir="auto">We use a standard authorization code grant. We call into <code>/oauth2/token</code> and get back something like this:</p>
<pre><code>{
"access_token":"...",
"expires_in":86399,
"refresh_token":"...",
"token_type":"Bearer",
"userId":"..."
}
</code></pre>
<p dir="auto">We'd like to add some more properties to this JSON response. Is that possible?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/123/can-we-add-more-information-to-the-access-token-response-we-get-during-the-oauth-flow</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 17:11:28 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/123.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 May 2020 16:55:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can we add more information to the access token response we get during the OAuth flow? on Wed, 27 May 2020 16:56:54 GMT]]></title><description><![CDATA[<p dir="auto">That response is essentially defined by OAuth2 / OIDC as the token response. If you want to customize it, the best solution is to use a lambda to encode additional details in the access_token (JWT) and then at the client decode that value to extract the necessary claims.</p>
<p dir="auto">More on lambdas: <a href="https://fusionauth.io/docs/v1/tech/lambdas/jwt-populate" rel="nofollow ugc">https://fusionauth.io/docs/v1/tech/lambdas/jwt-populate</a></p>
]]></description><link>https://fusionauth.io/community/forum/post/271</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/271</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Wed, 27 May 2020 16:56:54 GMT</pubDate></item></channel></rss>