# How can I pass a dynamically updated token from Wix’s Custom Code to the frontend in Wix Velo?

**URL:** <https://forum.wixstudio.com/t/how-can-i-pass-a-dynamically-updated-token-from-wix-s-custom-code-to-the-frontend-in-wix-velo/63750>\
**Category:** Ask the community\
**Tags:** code, wix-studio\
**Created:** [October 21, 2024, 9:16am UTC](https://forum.wixstudio.com/t/how-can-i-pass-a-dynamically-updated-token-from-wix-s-custom-code-to-the-frontend-in-wix-velo/63750 "2024-10-21T09:16:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabiannnnnnnnn](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@Fabiannnnnnnnn](https://forum.wixstudio.com/u/Fabiannnnnnnnn)\
**Post date:** [October 21, 2024, 9:16am UTC](https://forum.wixstudio.com/t/how-can-i-pass-a-dynamically-updated-token-from-wix-s-custom-code-to-the-frontend-in-wix-velo/63750/1 "2024-10-21T09:16:57Z")

</div>

In Wix, I use Custom Code (found under Settings), which allows me to insert JavaScript either in the head or body of the site. I’m generating a token via an external service, and this token updates frequently during the user session. I need a reliable method to pass this dynamically changing token from the Custom Code section to the frontend of Wix Velo, where I can access it for further use.

The goal is to ensure that the frontend in Wix Velo always has access to the most up-to-date token. What would be the best practice or solution to achieve this real-time data transfer?
