credentials.go 233 B

12345678910111213
  1. package user
  2. import "time"
  3. const (
  4. userCredentialsTTL = 5 * time.Minute
  5. userCredentialsKeyPrefix = "usr:cred:"
  6. )
  7. type userCredentialsPayload struct {
  8. Username string `json:"username"`
  9. Password string `json:"password"`
  10. }