feat(auth): add session login, logout and bearer middleware

This commit is contained in:
kk10
2026-10-05 11:54:36 +03:00
parent b94e7813ee
commit a8525778a3
10 changed files with 268 additions and 37 deletions
+10
View File
@@ -0,0 +1,10 @@
package dto
import "time"
type SessionResponse struct {
Token string `json:"token"`
TokenType string `json:"token_type"`
ExpiresAt time.Time `json:"expires_at"`
User UserResponse `json:"user"`
}