Parse Encoded App Instance Data

When a user accesses your app through a client-side action, Wix provides data about the app instance as an encoded query parameter to your app endpoints. This query parameter, encoded in base64, includes the instanceId along with site and user information. The data is also signed to ensure its integrity and authenticity.

The encoded parameter includes a signature and the data:

Copy
1

The following sections show examples on how to parse the parameter in various programming languages.

Node.JS

Copy
1

PHP

Copy
1

Java

Copy
1

Ruby

Copy
1

Note: According to the Base64 specification, the padding character (=) at the end of a URL-Safe Base64 encoded string is optional. Wix encoding doesn't include this padding character. In Ruby and Python, add the padding to the Base64 encoded values that you receive from Wix.

See also

Was this helpful?
Yes
No