Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Can I use jsonwebtoken node package in a Liferay web content template?
Hi there,
I'm currently attempting to embed a page in Liferay, and to accomplish this, I need to generate a token. I have a JavaScript script that works on the server, but it doesn't seem to function when used in the Liferay web content template. To use the jsonwebtoken package I use
var jwt = require("jsonwebtoken");
Is there a method to utilize a Node.js package within a Liferay web content template?
Thank you in advance for any suggestions you can offer.
Best regards,
Alla
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™