Skip to content

How can I decode global id in client side? #501

Answered by hayes
shtse8 asked this question in Q&A
Discussion options

You must be logged in to vote

It's just base64 encoded, you can use const [type, id] = atob(rawID).split(':'), on a phone, so this might not be exactly right, but hopefully that helps.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@shtse8
Comment options

@hayes
Comment options

@shtse8
Comment options

@hayes
Comment options

@shtse8
Comment options

Answer selected by hayes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants