# Need accessToken in Action to make additional Social calls to set app\_metadata?

**URL:** <https://community.auth0.com/t/need-accesstoken-in-action-to-make-additional-social-calls-to-set-app-metadata/97704>\
**Category:** Get Help\
**Tags:** app\_metadata, custom-social-connec, actions, access-token, auth0\
**Created:** [January 7, 2023, 11:03pm UTC](https://community.auth0.com/t/need-accesstoken-in-action-to-make-additional-social-calls-to-set-app-metadata/97704 "2023-01-07T23:03:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 13, 2023, 1:18am UTC](https://community.auth0.com/t/need-accesstoken-in-action-to-make-additional-social-calls-to-set-app-metadata/97704/3 "2023-01-13T01:18:50Z")

</div>

Hey there @2vYEjLFtkUPpbDR welcome to the community!

Have you been able to make any progress on this?

> [@2vYEjLFtkUPpbDR](#):
>
> I created a custom Post Login Action to store additional data in a user’s app\_metadata but I can’t make Twitch API calls from here as I don’t think I have the accessToken here.

I’m not positive I follow your use case entirely, but perhaps the following topic may be of use:

> [@How do I call my API from an Action?](https://community.auth0.com/t/how-do-i-call-my-api-from-an-action/69041):
>
> Hey, So I’m in the process of trying to add a user to my database using an API call from a “Post User Registration” Action. I have followed this blog post here: and seem to have everything looking good. On top of that when I run the test it says the action was successful. The only problem is that my API is not being called at all even though I have triple checked that the URL is correct. Here is the code I’m working with: import axios from "axios"; exports.onExecutePostUserRegistration = …

Thinking out loud here, perhaps you could use the [Management API](https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id) elsewhere to add the requisite metadata?

Keep us posted!

---

_[View the full topic](https://community.auth0.com/t/need-accesstoken-in-action-to-make-additional-social-calls-to-set-app-metadata/97704)._
