getSignupUrl method

Uri getSignupUrl({
  1. String scope = "read",
  2. String? state,
})

Implementation

Uri getSignupUrl({String scope = "read", String? state}) {
  return Uri.https(config.endpoint, "/signup/oauth/authorize", {
    "client_id": config.clientId,
    "response_type": "code",
    "scope": scope,
    "state": state ?? config.appName,
    "code_challenge_method": "S256",
    "code_challenge": generateCodeChallenge(codeVerifier),
    "redirect_uri": config.redirectUri
  });
}