Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Created October 23, 2021 17:07
Show Gist options
  • Save agusrichard/197d5e882b5ec15b46088e3a44f2caa5 to your computer and use it in GitHub Desktop.
Save agusrichard/197d5e882b5ec15b46088e3a44f2caa5 to your computer and use it in GitHub Desktop.
export function teardown(data) {
const params = {
headers: {
Authorization: `Bearer ${data.token}`
}
}
// To clear/truncate the injected table we need token
http.get(`${BASE_URL}/users/clear`, params)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment