Answers for "how to generate jwt secret key"


generate jwt secret key

node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
Posted by: Guest on September-22-2020

generate private key for jwt

PrivateKey privateKey = // Load an RSA private key from configuration
Instant now =;

String jwt = Jwts.builder()
        .setExpiration(Date.from(, ChronoUnit.MINUTES)))
Posted by: Guest on July-27-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language