Add Refresh token

This commit is contained in:
Aditya Siregar
2025-09-20 17:17:00 +07:00
parent 9db3dcb472
commit f85929c575
7 changed files with 100 additions and 24 deletions
+5 -3
View File
@@ -40,9 +40,11 @@ type LoginRequest struct {
}
type LoginResponse struct {
Token string `json:"token"`
ExpiresAt time.Time `json:"expires_at"`
User UserResponse `json:"user"`
Token string `json:"token"`
RefreshToken string `json:"refresh_token"`
ExpiresAt time.Time `json:"expires_at"`
RefreshExpiresAt time.Time `json:"refresh_expires_at"`
User UserResponse `json:"user"`
}
type UserResponse struct {