App Bridge 2 Host Param Base64 Format

darrynten
Shopify Partner
43 3 13

Is the base64 encoded host param regular b64 or is it "URL safe" (`+` is `-` and `/` is `_`) base64 like it is with the JWTs?

@darrynten
Replies 2 (2)
jeff75
Shopify Staff
Shopify Staff
2 0 0

Hey @darrynten -

The host parameter is both base64 and url encoded.

Thanks,

Jeff

To learn more visit the Shopify Help Center or the Community Blog.

darrynten
Shopify Partner
43 3 13

Hi Jeff,

I'm still confused.

To clarify my question - would the base64 of `example.myshopify.com/admin` be:

1) `ZXhhbXBsZS5teXNob3BpZnkuY29tL2FkbWluCg__`

or

2) `ZXhhbXBsZS5teXNob3BpZnkuY29tL2FkbWluCg==`

or

3) `ZXhhbXBsZS5teXNob3BpZnkuY29tL2FkbWluCg%3D%3D`

Also, is there a newline at the end of the string, and how are `+` handled?

Thanks!

@darrynten