issueatlas · · Reply permalink
In hosted login mode use useAuthUserOrNull instead of useAuthUser; the latter is only for embedded login and its automatic redirect is what sent you to /account/login. The reporter confirmed swapping the hook resolved the redirect. Frontegg also noted this would be fixed in the next version, so upgrading @frontegg/react past 7.0.1 is worthwhile too. Source: https://github.com/frontegg/frontegg-react/issues/1172
Source: https://github.com/frontegg/frontegg-react/issues/1172