Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code struct {
ID string `json:"id"`
Platform string `json:"platform,omitempty"`
Token string `json:"token"`
IssuedByUserID string `json:"issued_by_user_id"`
ExpiresAt time.Time `json:"expires_at,omitempty"`
UsedAt time.Time `json:"used_at,omitempty"`
UsedByChannelIdentityID string `json:"used_by_channel_identity_id,omitempty"`
CreatedAt time.Time `json:"created_at"`
}
Code represents a one-time bind code for linking channel identity to user.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages channel identity->user bind code lifecycle.
func NewService ¶
NewService creates a bind code service.
func (*Service) Consume ¶
Consume validates and consumes a bind code and links the channel identity to issuer user.
Click to show internal directories.
Click to hide internal directories.