Refresh Token Support and package refactor based on best practice docs #18
@ -1,7 +1,5 @@
|
||||
package domain
|
||||
|
||||
import "time"
|
||||
|
||||
type HelloBodyRequest struct {
|
||||
Name string `json:"name" validate:"required"`
|
||||
}
|
||||
@ -14,5 +12,5 @@ type UpdateScopesRequest struct {
|
||||
type RefreshTokenRequest struct {
|
||||
Username string `json:"username"`
|
||||
RefreshToken string `json:"refreshToken"`
|
||||
ExpiresAt time.Time `json:"expiresAt"`
|
||||
//ExpiresAt time.Time `json:"expiresAt"`
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
package domain
|
||||
|
||||
type LoginResponse struct {
|
||||
ErrorResponse
|
||||
BaseResponse
|
||||
Token string `json:"token"`
|
||||
Type string `json:"type"`
|
||||
RefreshToken string `json:"refreshToken"`
|
||||
|
Loading…
Reference in New Issue
Block a user