This module is used to generate JWT after login and set to drupalSettings.
- JWT This JWT module on its own just provides a framework for managing a single site-wide key and integration with a JWT library.
Go to /admin/config/system/keys and add a RSA key.
Configuration must be file based.
Go to the console and run the below command to generate the keys:
openssl genrsa 2048 > /keys/jwt.key
Go to /admin/config/system/jwt to pick the key to be used. Use the JWT RSA Key.
Now enable the jwt_js module to set a token to drupalSettings on login.
Add the below setting just under parameters key in services.yml file under directory "sites/default" folder:
tempstore.expire: 7200