cURL
curl --request POST \ --url http://localhost:3000/auth/dev/token \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "auth0Sub": "auth0|admin-user", "expiresInSeconds": 3600 } '
{ "accessToken": "<string>", "tokenType": "<string>", "expiresIn": 123, "user": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "role": "ADMIN", "email": "<string>" }, "idToken": "<string>", "refreshToken": "<string>", "scope": "<string>" }
Disponível apenas em development/test quando JWT_SECRET está configurado.
development
test
JWT_SECRET
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Subject (sub) do usuário local cadastrado na tabela user
"auth0|admin-user"
Tempo de expiração do JWT em segundos (padrão: 3600)
3600
JWT local emitido com sucesso
Show child attributes