App Bridge 2 Host Param Base64 Format

darrynten
Shopify Partner
20 1 8

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

@darrynten
0 Likes
jeff75
Shopify Staff
Shopify Staff
2 0 0

Hey @darrynten -

The host parameter is both base64 and url encoded.

Thanks,

Jeff

0 Likes
darrynten
Shopify Partner
20 1 8

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
0 Likes