mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Add token review / delete to backend + settings panel (#3845)
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
"context"
|
||||
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/paging"
|
||||
)
|
||||
|
||||
type Application interface {
|
||||
@@ -39,6 +40,9 @@ type Application interface {
|
||||
// GetAllTokens fetches all client oauth tokens from database.
|
||||
GetAllTokens(ctx context.Context) ([]*gtsmodel.Token, error)
|
||||
|
||||
// GetAccessTokens allows paging through a user's access (ie., user-level) tokens.
|
||||
GetAccessTokens(ctx context.Context, userID string, page *paging.Page) ([]*gtsmodel.Token, error)
|
||||
|
||||
// GetTokenByID fetches the client oauth token from database with ID.
|
||||
GetTokenByID(ctx context.Context, id string) (*gtsmodel.Token, error)
|
||||
|
||||
|
Reference in New Issue
Block a user