Last active
October 31, 2022 15:06
-
-
Save alexhwoods/8ba519fe90f3b60f9faf0af0ef4d13d8 to your computer and use it in GitHub Desktop.
Go from an Auth0 user id, to one used in a URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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