MCPcopy Create free account
hub / github.com/supabase/auth / ClearAllOneTimeTokensForUser

Function ClearAllOneTimeTokensForUser

internal/models/one_time_token.go:123–125  ·  view source on GitHub ↗
(tx *storage.Connection, userID uuid.UUID)

Source from the content-addressed store, hash-verified

121}
122
123func ClearAllOneTimeTokensForUser(tx *storage.Connection, userID uuid.UUID) error {
124 return tx.Q().Where("user_id = ?", userID).Delete(OneTimeToken{})
125}
126
127func ClearOneTimeTokenForUser(tx *storage.Connection, userID uuid.UUID, tokenType OneTimeTokenType) error {
128 if err := tx.Q().Where("token_type = ? and user_id = ?", tokenType, userID).Delete(OneTimeToken{}); err != nil {

Calls 1

DeleteMethod · 0.45