basalt / drives/src / assertRedirectUri
Function: assertRedirectUri()
> assertRedirectUri(redirectUri): void
Defined in: drives/src/authorization.ts:184
Validates the redirect URI an app hands us.
It is a deployment value, not user input — but it ends up in a URL the user's browser follows, so a mistake here is an open redirect with the provider's blessing. Absolute, https: (or http://localhost for development), and no credentials or fragment.
Parameters
redirectUri
string
Returns
void