Callbacks service docs updated
This commit is contained in:
@@ -3,7 +3,9 @@ package model
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/tech/sendico/pkg/db/storable"
|
||||
"github.com/tech/sendico/pkg/mservice"
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
)
|
||||
|
||||
type ClientRefreshToken struct {
|
||||
@@ -12,13 +14,14 @@ type ClientRefreshToken struct {
|
||||
}
|
||||
|
||||
type RefreshToken struct {
|
||||
AccountBoundBase `bson:",inline" json:",inline"`
|
||||
storable.Base `bson:",inline" json:",inline"`
|
||||
ClientRefreshToken `bson:",inline" json:",inline"`
|
||||
ExpiresAt time.Time `bson:"expiresAt"`
|
||||
IsRevoked bool `bson:"isRevoked"`
|
||||
LastUsedAt time.Time `bson:"lastUsedAt,omitempty"`
|
||||
UserAgent string `bson:"userAgent"`
|
||||
IPAddress string `bson:"ipAddress"`
|
||||
AccountRef *bson.ObjectID `bson:"accountRef,omitempty" json:"accountRef,omitempty"`
|
||||
ExpiresAt time.Time `bson:"expiresAt"`
|
||||
IsRevoked bool `bson:"isRevoked"`
|
||||
LastUsedAt time.Time `bson:"lastUsedAt,omitempty"`
|
||||
UserAgent string `bson:"userAgent"`
|
||||
IPAddress string `bson:"ipAddress"`
|
||||
}
|
||||
|
||||
func (*RefreshToken) Collection() string {
|
||||
|
||||
Reference in New Issue
Block a user