### Athena Auth — REST Client examples
### Set `@origin` to your server. Auth routes use `/api/auth` by default.

@origin = http://localhost:3000
@base = {{origin}}/api/auth
@email = user@example.com
@password = password123

### Probes
GET {{base}}/ok
GET {{base}}/error

### Sign up & sign in
POST {{base}}/sign-up/email
Content-Type: application/json

{
  "name": "Example User",
  "email": "{{email}}",
  "password": "{{password}}"
}

###

POST {{base}}/sign-in/email
Content-Type: application/json

{
  "email": "{{email}}",
  "password": "{{password}}"
}

### @token = paste Bearer token from sign-in response
@token =

###

GET {{base}}/get-session
Authorization: Bearer {{token}}

###

POST {{base}}/sign-out
Authorization: Bearer {{token}}
Content-Type: application/json

{}
