auth.provider API
Preparing search index...
@o3co/auth-provider-session
validateRedirect
Function validateRedirect
validateRedirect
(
url
:
string
,
config
:
Pick
<
RedirectConfig
,
"sessionDomain"
>
,
)
:
FederationResult
<
void
>
Validates that the given URL is acceptable as a post-login redirect target.
Rules:
Must be ≤ 2048 characters.
Must be a valid absolute URL with http: or https: scheme.
If
sessionDomain
is configured, the URL hostname must match or be a subdomain of the normalised domain (leading dot stripped).
Parameters
url
:
string
config
:
Pick
<
RedirectConfig
,
"sessionDomain"
>
Returns
FederationResult
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
auth.provider API
Loading...
Validates that the given URL is acceptable as a post-login redirect target.
Rules:
sessionDomainis configured, the URL hostname must match or be a subdomain of the normalised domain (leading dot stripped).