Frontegg login box supports pre-filling a user's email that is being sent from another custom form or page via login_hint
query param. If a login_hint
is being sent to the login box - it will automatically trigger the next action, such as sending the magic code, redirecting the user to SSO or showing the password field - depending on the user's login method.
To implement this, append login_hint
at the end of the login URL with the user's email URL encoded.
Example:
Hosted Login
https://[frontegg-sub-domain].frontegg.com/oauth/account/login?login_hint=test%2B2%40frontegg.com
Embedded Login
https://[Application-URL]/account/login?login_hint=test%2B2%40frontegg.com
Note that login_hint
is supported with Frontegg embedded login from the below versions:
@frontegg/react@5.0.42
@frontegg/angular@5.33.0
@frontegg/js@6.112.0
@frontegg/nextjs@7.0.12
@frontegg/vue@2.0.38