• Deletes all tokens for a user

    Parameters

    • db: any

      The database to use

    • userId: string

      The user ID to delete tokens for

    • type: any

      The type of the tokens to delete

    Returns Promise<any>

    The deleted tokens, or undefined if no tokens were deleted