MCPcopy Create free account
hub / github.com/apache/answer / RemoveTokensExceptCurrentUser

Method RemoveTokensExceptCurrentUser

internal/service/auth/auth.go:141–143  ·  view source on GitHub ↗

RemoveTokensExceptCurrentUser remove all tokens except the current user

(ctx context.Context, userID string, accessToken string)

Source from the content-addressed store, hash-verified

139
140// RemoveTokensExceptCurrentUser remove all tokens except the current user
141func (as *AuthService) RemoveTokensExceptCurrentUser(ctx context.Context, userID string, accessToken string) {
142 as.authRepo.RemoveUserTokens(ctx, userID, accessToken)
143}
144
145// Admin
146

Callers 1

UserModifyPasswordMethod · 0.80

Calls 1

RemoveUserTokensMethod · 0.65

Tested by

no test coverage detected