Authentication Service
Secure user authentication with JWT tokens
Sign In
Don't have an account? Sign up
API commands for this page
Run these examples from a terminal. Replace sample values and add your bearer token where required.
Sign in
curl -q -LSsf -X POST -H 'Content-Type: application/json' --data-raw '{"email":"user@example.com","password":"YOUR_PASSWORD"}' 'https://api.casjay.coffee/api/v1/auth/login'
Create account
curl -q -LSsf -X POST -H 'Content-Type: application/json' --data-raw '{"name":"Your Name","email":"user@example.com","password":"YOUR_PASSWORD"}' 'https://api.casjay.coffee/api/v1/auth/signup'
Current account
curl -q -LSsf -H 'Authorization: Bearer YOUR_TOKEN' 'https://api.casjay.coffee/api/v1/auth/me'
Update account
curl -q -LSsf -X PUT -H 'Content-Type: application/json' --data-raw '{"name":"Your Name"}' -H 'Authorization: Bearer YOUR_TOKEN' 'https://api.casjay.coffee/api/v1/auth/update'