This example demonstrates how to combine the Corbado React component, @corbado/react
and integrate it with Remix for a seamless user experience.
.
├── .env
├── package.json
└── app
├── entry.client.tsx
├── root.tsx
├── utilities
│ ├── AuthComponent.client.tsx
│ └── ProfileComponent.client.tsx
└── routes
├── _index.tsx
└── profile.tsx
- For the Corbado React package to work with Remix, you need to prevent the Server bundle rom containing any imports from
@corbado/react
when building. This is achieved with putting Corbado imports only inside files that have.client
in front of their file extension (e.g.AuthComponent.client.tsx
). Inside your routes SSR of these Components needs to be diabled with the help of this method.
If you encounter any bugs or have suggestions, please open an issue.
Join our Slack channel to discuss questions or ideas with the Corbado team and other developers.
You can also reach out to us via email at [email protected].
Please report suspected security vulnerabilities in private to [email protected]. Please do NOT create publicly viewable issues for suspected security vulnerabilities.