Skip to content

This is based on TTD UID2 generate/refresh enpoints encryption requirements.

Notifications You must be signed in to change notification settings

ShinJustinHolly3317/UID2-encryption-js

Repository files navigation

UID2 Generate / Refresh Encryption

This is based on TTD UID2 generate/refresh enpoints encryption requirements. There is only Python example in official document, and the encryption rule is kinda complicated. That's the reason I made this JS version for quick translation.

Steps

  1. Fill out your AUTH_TOKEN and SECRET_KEY in .env file.

  2. run npm run generate to generate UID2 Token by a specific Email.

  3. run npm run refresh <refreshResponseKey> <refreshToken> to get a new UID2 Token with refreshResponseKey and refreshToken as arguments.

About

This is based on TTD UID2 generate/refresh enpoints encryption requirements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published