Pre-fill User Email upon Frontegg Login (programmatically)
Prerequisites
Note that
login_hint
is supported with Frontegg embedded login from the below versions:@frontegg/[email protected]
@frontegg/[email protected]
@frontegg/[email protected]
@frontegg/[email protected]
@frontegg/[email protected]
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.
Hosted Login example:
https://[frontegg-sub-domain].frontegg.com/oauth/account/login?login_hint=test%2B2%40frontegg.com
Embedded Login example:
https://[Application-URL]/account/login?login_hint=test%2B2%40frontegg.com
Updated 14 days ago