Pass a JWT token to site hosted on Cloudflare pages

I’ve been experimenting with hosting a React application on pages. Rather than have the user login on a form on that site I’d like to be able to hit an authentication service allows the user to log in and then have that service pass a token to the pages site. The token could then be used to make API requests. Is this possible? Is it possible to combine Pages with Workers to receive a request and then inject the token to be passed to the client?

Thanks!

Not yet! The proxied support is almost here! Once that is available you will be able to do Workers on top.

The Discord server is a good place to keep up to date on this: https://discord.gg/cloudflaredev

Thanks. I’ll check out the channel. I think the proxied support would be really handy.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.