# Example #6

## How it works

This example is similar to Example #4 except it uses an encrypted JWT cookie.

The app.js config species a JWT adapter with a `secret` which is used to unencrypt the JWT cookie.

To use this, log in to your Keycloak server administration console

1.  Edit your "test" client
2.  Under Settings, set Access Type to "confidential".
3.  Under Settings, change Client Authenticator to "Signed Jwt"
4.  Click "Generate new keys and certificate"
5.  Fill in any values for Key Password and Store Password and then click Generate and Download.
6.  Copy the Certficate String

Now edit app.js and paste the certificate string into the "secret" property for the JWT request adapter.
