Refresh Token Support and package refactor based on best practice docs #18

Merged
jtom38 merged 15 commits from features/restructure-go-recommendations into main 2024-04-21 10:30:52 -07:00
2 changed files with 4 additions and 6 deletions
Showing only changes of commit 9627c51e7a - Show all commits

View File

@ -1,7 +1,5 @@
package domain package domain
import "time"
type HelloBodyRequest struct { type HelloBodyRequest struct {
Name string `json:"name" validate:"required"` Name string `json:"name" validate:"required"`
} }
@ -12,7 +10,7 @@ type UpdateScopesRequest struct {
} }
type RefreshTokenRequest struct { type RefreshTokenRequest struct {
Username string `json:"username"` Username string `json:"username"`
RefreshToken string `json:"refreshToken"` RefreshToken string `json:"refreshToken"`
ExpiresAt time.Time `json:"expiresAt"` //ExpiresAt time.Time `json:"expiresAt"`
} }

View File

@ -1,7 +1,7 @@
package domain package domain
type LoginResponse struct { type LoginResponse struct {
ErrorResponse BaseResponse
Token string `json:"token"` Token string `json:"token"`
Type string `json:"type"` Type string `json:"type"`
RefreshToken string `json:"refreshToken"` RefreshToken string `json:"refreshToken"`