Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 767 Bytes

Pacco.Services.Identity.rest

File metadata and controls

49 lines (38 loc) · 767 Bytes

@url = http://localhost:5004 @accessToken = secret @refreshToken = secret

### POST {{url}}/sign-up Content-Type: application/json

{
"email": "[email protected]", "password": "secret"

}

### POST {{url}}/sign-in Content-Type: application/json

{
"email": "[email protected]", "password": "secret"

}

### GET {{url}}/me Authorization: Bearer {{accessToken}}

### POST {{url}}/refresh-tokens/use Content-Type: application/json

{
"refreshToken": "{{refreshToken}}",

}

### POST {{url}}/refresh-tokens/revoke Content-Type: application/json

{
"refreshToken": "{{refreshToken}}",

}

### POST {{url}}/access-tokens/revoke Content-Type: application/json

{
"accessToken": "{{accessToken}}",

}