Authinfo의 Token을 Email로 교체
This commit is contained in:
12
redis.go
12
redis.go
@ -7,20 +7,8 @@ import (
|
||||
"strconv"
|
||||
|
||||
"github.com/go-redis/redis/v8"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type Authinfo struct {
|
||||
Accid primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
|
||||
ServiceCode string `bson:"code" json:"code"`
|
||||
Platform string
|
||||
Uid string
|
||||
Token string
|
||||
Sk primitive.ObjectID
|
||||
RefreshToken string `bson:"refresh_token,omitempty" json:"refresh_token,omitempty"`
|
||||
Expired primitive.DateTime `bson:"_ts" json:"_ts"`
|
||||
}
|
||||
|
||||
func newRedisClient(uri string, dbidxoffset int) *redis.Client {
|
||||
option, err := redis.ParseURL(uri)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user