Token expiry and --no-expiry for Bots
#82
Notifications
Due Date
No due date set.
Reference: bobby/hapi#82
Reference in new issue
Block a user
Part of #73 (spec: #72)
What to build
Every credential expires unless the Owner decides otherwise. Tokens expire after 365 days by default,
--expires-insets another lifetime, and--no-expiryis accepted only for Bot Tokens and prints a warning.Acceptance criteria
expires_atgets the standard401(proved with the pinned clock)--expires-insets a custom lifetime--no-expiryfor a Person is refused with a non-zero exit; for a Bot it succeeds and prints a warning