Skip to content

frontegg-samples/react-embedded-login

Repository files navigation

React Embedded Login Banner

React embedded login sample

This sample showcases how to seamlessly add authentication and user management to your React app using Frontegg’s embedded login method.

This app showcases

  • Redirect users to Frontegg’s embedded login
  • Enable a fully integrated self-service portal
  • Manage and track user authentication state
  • Access and display user profile details
  • Handle account state and data with ease
  • Implement seamless account switching functionality

What you’ll need

You’ll also need a Frontegg account. Sign up for free to get started.

Don’t have an account yet? No worries. This project includes sandbox credentials so you can test it right away!

Get started in 3 simple steps

If you don’t have a Frontegg account or prefer to use the sandbox credentials, feel free to skip to step 2.

If you're using your own credentials, follow the guidelines below.

1. Configure your Frontegg application (if using your own account) -

  1. Go to Frontegg Portal
  2. Get your application ID from [ENVIRONMENT] → Applications
  3. Get your Frontegg domain from the Frontegg Portal → [ENVIRONMENT] → Keys & domains
  4. This sample runs on http://localhost:3000. You may need to add http://localhost:3000 under → [ENVIRONMENT] → Keys & domains → Allowed origins
  5. Update your application's credentials under sanboxContextOptions

2. Clone the repository -

Run the following command:

git clone <repo>

3. Install dependencies -

Run the following command:

npm install

4. Run the application -

To start the application, run:

npm start

The app will be available at http://localhost:3000.

React sample

Experience Frontegg in action!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •