© 2025 InterSystems Corporation, Cambridge, MA. All rights reserved.Privacy & TermsGuaranteeSection 508Contest Terms

Initial Release
irisJWT is an ObjectScript library for JWT (JSON Web Token) encoding and decoding in InterSystems IRIS. It supports both symmetric (HMAC) algorithms and allows optional custom headers.
ZPM> INSTALL irisJWT
git clone https://github.com/AshokThangavel/irisjwt.git
cd irisjwt
Build and start the app using Docker Compose:
docker-compose up --build
To stop and remove the running containers:
docker-compose down
Set token = ##class(irisjwt.JWT).Encode(payloadDAObject, secret, algorithm, headerDAOject) ; returns JWT token
Set payload = ##class(irisjwt.JWT).Encode(token, secret, algorithm) ; retuns %DynamicObject
Set supportedAlog = ##class(irisjwt.JWT).SupportedAlgorithms() ; returns supported alogrithms
The Encode and Decode methods return the JWT string or decoded payload on success. If an error occurs, they return an empty string ("").
You can check the following variables for details:
%jwterror → Contains the exact error message.%objlasterror → Contains detailed error information for debugging.