Okta Authentication in React Module Federation App

I have a react application with a micro frontend setup using Webpack’s Module Federation. My host application is responsible for logging the user in and holding the authentication state. How can I pass the authentication state to my remote applications? Can you please share code snippets?

Hello @sayalishinde,

It looks like the best tutorial we have available for this is here: How to Build Micro Frontends Using Module Federation in Angular | Okta Developer

I would recommend going through this blog and using the contained code snippets, as they should give you an excellent start on passing the authenticated state between your applications.

1 Like

Hey, thanks for the reply.

I’ve read through the blog you mentioned. However it does not mention about how to consume the state in the remote applications. What modules are actually supposed to be exposed and how to consume that.

Hi there @sayalishinde !

Thanks for checking out the blog post and your feedback. Have you read the second part of this blog post series?

I’m wondering if this section is what you’re looking for

If not, please let us know! I’d love to understand how we can improve our content for community needs!

Thanks!

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