Similar to DFA, I want a set of API endpoints for creating and using a lease for accessing the login background of the user. The lease should be created when the user logs in, and saved in LoginPesistence so that it may be accessed again.
The endpoints:
POST /user/loginbg/lease -- Authenticated
GET /user/loginbg/lease/:uuid -- Public
Database layout:
userId: string (unique, required)
value: string (unique, required)
createdAt: date
updatedAt: date