Part of epic #3942
What type of user does this affect?
How should it operate? ⚙️🛠️
Endpoint can now output randomized token and refresh_token on successful /api/v1/sign_in request.
Additionally, since tokens now expire, user model has token_expires_at and refresh_token_expires_at datetimes.
Acceptance Criteria
Edit: Made api_credentials table and put randomized functions in new models/api_credential.rb that belongs to user
Helpful Links
Part of epic #3942
What type of user does this affect?
How should it operate? ⚙️🛠️
Endpoint can now output randomized
tokenandrefresh_tokenon successful/api/v1/sign_inrequest.Additionally, since tokens now expire,
user modelhastoken_expires_atandrefresh_token_expires_atdatetimes.Acceptance Criteria
user modelto handle both thetokenandrefresh token, as well as their expiration times.randomizedtokens inuser.rband set default expiration to7 hoursand30 dayssession controllerandbase controllerwith new details if applicableEdit: Made api_credentials table and put randomized functions in new models/api_credential.rb that belongs to user
Helpful Links