How to decode JWT token in AL?

Hi All,

I want to decode a JWT token in AL to extract expiration time from it.

How can I do it?


What is a JWT token?


JWT stands for Json Web Token, normally used to authenticate Web API call.

Ok, can’t help you with that answer. [emoticon:c4563cd7d5574777a71c318021cbbcc8]

But you are aware that you now have “native” support for json files in AL?

Seems like it is not possible using AL. Is there a way to call C# or Javascript function in AL?

If you with C# means dotnet, then no. But you can use java script control addins.

Check out [mention:2bb55e765e9542efb188bc24e9c7dba4:e9ed411860ed4f2ba0265705b8793d05]'s blog:


He has been writing a lot about using java script with NAV and AL.