# Create a JWT Token in MS Flow

**URL:** <https://community.auth0.com/t/create-a-jwt-token-in-ms-flow/124727>\
**Category:** Get Help\
**Tags:** custom-database-connections, connections\
**Created:** [January 12, 2024, 12:25pm UTC](https://community.auth0.com/t/create-a-jwt-token-in-ms-flow/124727 "2024-01-12T12:25:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![josematamoros](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@josematamoros](https://community.auth0.com/u/josematamoros)\
**Post date:** [January 12, 2024, 12:25pm UTC](https://community.auth0.com/t/create-a-jwt-token-in-ms-flow/124727/1 "2024-01-12T12:25:26Z")

</div>

Hey guys,

I’m trying to create a API connection in MS flow with the HTTP connector, this connector will call an API in Notify [gov.uk](http://gov.uk) that will allow me to send a SMS.

The problem I’m facing is that Notify requires a fresh jwt token every time a call is made, hence I need a way to create a new jwt token every time the flow is trigger.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 19, 2024, 4:12pm UTC](https://community.auth0.com/t/create-a-jwt-token-in-ms-flow/124727/3 "2024-01-19T16:12:19Z")

</div>

Hi @josematamoros,

Welcome to the Auth0 Community!

Are you looking to _create_ JWTs or _request_ JWTs from Auth0?

If you want to create them, you can find a library for your stack here: [https://jwt.io/](https://jwt.io/)

Otherwise follow this guide: [Get Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens/get-access-tokens)

---

<div class="post-metadata">

**Author:** ![josematamoros](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@josematamoros](https://community.auth0.com/u/josematamoros)\
**Post date:** [January 22, 2024, 10:37am UTC](https://community.auth0.com/t/create-a-jwt-token-in-ms-flow/124727/4 "2024-01-22T10:37:36Z")

</div>

Hey @dan.woda

Client is Power Automate and the server is UK Gov Notify Service, but I need to encode the JWT (not decode). I can get it to work if I use the [JWT.io](http://JWT.io) interface but only by then copying the output into Power Automate. I need to find a way to create a fresh token every time the form is submitted.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 22, 2024, 7:03pm UTC](https://community.auth0.com/t/create-a-jwt-token-in-ms-flow/124727/5 "2024-01-22T19:03:26Z")

</div>

@josematamoros,

I’m not personally familiar with the platform, but it looks like Power Automate doesn’t support JWT token creation.

I see that [you’re part of that conversation](https://ideas.powerautomate.com/d365community/idea/1b01e441-4a09-4853-9a7d-501744b1a329), and I’m not sure there is much I can help with unfortunately.

I’m happy to help with any other questions you have!

---

<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:** [February 5, 2024, 7:03pm UTC](https://community.auth0.com/t/create-a-jwt-token-in-ms-flow/124727/6 "2024-02-05T19:03:30Z")

</div>

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