Hamendra Sunthwal Posted December 23, 2020 Share Posted December 23, 2020 I am new to prestashop and trying to add a 3rd party JS library (https://jwt.io/#libraries-io) in order to generate JWT. I have been asked to :- use this function [![enter image description here][1]][1] Thenhttps://jwt.io/#libraries-io - **Use this library (js)** **Setup** `/kbAuthToken` **endpoint on website to generate JWT and return that** [1]: https://i.stack.imgur.com/i4tIQ.png I am starting this with installing library in **prestashop 1.7.4.4** Any thoughts on this, How can i start implementation of this & where should i start ? Thankyou Link to comment Share on other sites More sharing options...
Rhobur Posted December 26, 2020 Share Posted December 26, 2020 You have to add this in a module using the hookActionFrontControllerSetMedia() function; start by reading the docs here, https://devdocs.prestashop.com/1.7/modules/creation/ Link to comment Share on other sites More sharing options...
Hamendra Sunthwal Posted December 28, 2020 Author Share Posted December 28, 2020 Thankyou, can you please advise on how to install a 3rd party library in Prestashop ? Link to comment Share on other sites More sharing options...
Rhobur Posted December 28, 2020 Share Posted December 28, 2020 similar, please read the docs here https://devdocs.prestashop.com/1.7/themes/getting-started/asset-management/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now