Skip to content

Instantly share code, notes, and snippets.

@alexhwoods
Last active October 31, 2022 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexhwoods/8ba519fe90f3b60f9faf0af0ef4d13d8 to your computer and use it in GitHub Desktop.
Save alexhwoods/8ba519fe90f3b60f9faf0af0ef4d13d8 to your computer and use it in GitHub Desktop.
Go from an Auth0 user id, to one used in a URL
function auth0Url(tenant: string, userId: string) {
const userIdInUrl = btoa(encodeURIComponent(userId))
return `https://manage.auth0.com/dashboard/us/${tenant}/users/${userIdInUrl}`
}
auth0Url("foo-development", "auth0|1234")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment