How to generate random and secure key for your JWT

Run the following command in your terminal (make sure you have openssl installed) to generate a random and secure JWT key for your application:

openssl rand -base64 32

# Output: NqkJp20cIl6pJUNRUyQ7IQvS7wYeoEOR4MqX17mrSfA=

This will generate a 44 character long string that you can use as your secure JWT (Json Web token) key.