Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

App Bridge 2 Host Param Base64 Format

App Bridge 2 Host Param Base64 Format

darrynten
Shopify Partner
48 3 18

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
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
48 3 18

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