MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / DeleteToken

Method DeleteToken

internal/services/token.go:65–68  ·  view source on GitHub ↗
(ctx context.Context, token *Token)

Source from the content-addressed store, hash-verified

63}
64
65func (s *TokenService) DeleteToken(ctx context.Context, token *Token) error {
66 _, err := s.tokenCollection.DeleteOne(ctx, bson.M{"_id": token.ID})
67 return err
68}

Callers 2

TestTokenService_CRUDFunction · 0.80
LogoutMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestTokenService_CRUDFunction · 0.64