From 6f4657cafff09ed72d8b35e4ee2156949c29887a Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 18 Dec 2025 10:50:08 +0200 Subject: [PATCH] add comments --- internal/token/store_sqlite.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/token/store_sqlite.go b/internal/token/store_sqlite.go index b84057e..100a392 100644 --- a/internal/token/store_sqlite.go +++ b/internal/token/store_sqlite.go @@ -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")