curl --request GET \
--url https://api.sandbox.humanity.org/v2/oauth/authorizecurl --request GET \
--url https://api.sandbox.humanity.org/v2/oauth/authorizeconst { url, codeVerifier } = sdk.buildAuthUrl({
scopes: ['is_human', 'humanity_user'],
state: crypto.randomUUID(),
});
HumanitySDK.buildAuthUrl or construct them manually with:
client_id, redirect_uri, response_type=codescope – space-delimited preset keys (e.g. is_human is_21_plus)code_challenge + code_challenge_method=S256state, prompt, nonce, authorization_id, login_hint/oauth/authorize/context to hydrate an authorization prompt (name, avatar, requested presets) and /oauth/authorize/result to resolve the final decision if you are embedding the consent UI.