Auth
Auth - Login
Body: {username, password}. Success mints a publisher-audience JWT (12h TTL default), sets it as an httpOnly + SameSite=Lax + Secure cookie, stamps date_last_login on the publisher_login row, and returns the publisher's public profile — including the linked publisher org id + name. Failures return 401 with a generic "Invalid credentials." message — same response for unknown username and wrong password to avoid user enumeration.
post/publisher/v1/auth/login
Request
- Base URL: https://api.juju.com
- URL: https://api.juju.com/publisher/v1/auth/login
- Auth: none declared
Request body
Example request
{
"username": "lisa.smith",
"password": "correct-horse-battery-staple"
}Response
Login succeeded. Session cookie set on response.
Example response
{
"errors": []
}Changes
No recorded changes to this operation across all 1 revision of this API.