Use Ghost members auth to log-in to custom app via cookies

Thanks for the tips, Fabien!

I was able to get a JWT via API request, like you mentioned.

However, I haven’t been able to get the public key with which to validate the JWT. From searching on Github, I can see that members_public_key exists - but I’m struggling to see how I can retrieve it if I don’t have direct access to the database.

My goal

Ultimately, my goal is is to build a comments tool that leverages Ghost’s memberships. When a new customer signs up, I need an easy way to get the public key with which to validate JWTs from that user’s Ghost blog.

(For example, it would be great if the user could copy/paste the public key it into my site from a settings page in - say - their admin dashboard, or perhaps I could make an API request to their blog on a particular endpoint to fetch it.)

I’ve been poking around my own blog (which is hosted on Ghost Pro), but I haven’t found the public key anywhere.

Any tips on where to find it?

Thanks,
Dan


P.S. I opened this other forum thread with this same question.