add comments
This commit is contained in:
@@ -16,6 +16,8 @@ type Token struct {
|
||||
Expiration time.Time `gorm:"index"`
|
||||
}
|
||||
|
||||
// NewSQLiteTokenStore creates a new SQLiteTokenStore with the given GORM DB instance.
|
||||
// Actually can be used for any GORM-supported database.
|
||||
func NewSQLiteTokenStore(db *gorm.DB) (*SQLiteTokenStore, error) {
|
||||
if db == nil {
|
||||
return nil, fmt.Errorf("db is nil")
|
||||
|
||||
Reference in New Issue
Block a user