[feature] Add token review / delete to backend + settings panel (#3845)

This commit is contained in:
tobi 2025-03-04 11:01:25 +01:00 committed by GitHub
commit 829143d263
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 1637 additions and 1 deletions

View file

@ -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)