Requesting Custom Fields on your JWT Token

Use Case

Let's say you have a user with attributes:

{
"username": "helloworld",
"role": "admin"
}

And you want to include this in Cotter's Access Token so that you can quickly access them in your API Middleware, you can now do this by calling an API request.

The API

To do this, checkout the API reference at

Our "Refresh Token" endpoint currently doesn't support refreshing custom JWT tokens. This means if you refreshed a custom JWT token using this endpoint, it'll return you the raw JWT token based on Cotter's default specs.

We are working on this feature, chat us at #feature-request on our Slack to get updates.