service backend
This commit is contained in:
12
api/pkg/db/internal/mongo/refreshtokensdb/client.go
Normal file
12
api/pkg/db/internal/mongo/refreshtokensdb/client.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package refreshtokensdb
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/tech/sendico/pkg/model"
|
||||
)
|
||||
|
||||
func (db *RefreshTokenDB) GetClient(ctx context.Context, clientID string) (*model.Client, error) {
|
||||
var client model.Client
|
||||
return &client, db.clients.FindOneByFilter(ctx, filterByClientId(clientID), &client)
|
||||
}
|
||||
Reference in New Issue
Block a user