Vistaprint Auth JS
@vp/auth is a library that provides interaction with authentication in the new Vistaprint platform.
Library is available in JFrog. Source code is in GitLab, including this sample. See also React wrapper for this library.
Your Access Token
The following data are talken from the vp/auth event onUserIdentityUpdate.
Token is for demo purposes refreshed every 30 seconds: anonymous: 0 times, user: 0 times.
isSignedIn:
Note that anonymous tokens are cached on Cimpress Anonymous service side.
canonicalId:
lastAnonymusId:
More information about canonical_id - customer identifier in the new VP platform.
Token claims (profile property)
Important token claims are:
canonical_id- see above.is_customer- true if token is for logged-in Vistaprint customer. E.g. ADFS Vistaprint employee tokens do not have this claim.is_anonymous- true if token is for anonymous (not signed-in) Vistaprint customer.