customer/internal/models/auth.go
2023-06-29 14:50:48 +00:00

18 lines
488 B
Go

package models
import "time"
type User struct {
ID string `json:"_id"`
Login string `json:"login"`
Email string `json:"email"`
PhoneNumber string `json:"phoneNumber"`
IsDeleted bool `json:"isDeleted"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
const AuthJWTDecodedUserIDKey = "userID"
const AuthJWTDecodedAccessTokenKey = "access-token"