createAuthenticateRequest method

Future<AuthenticateRequest> createAuthenticateRequest({
  1. required String redirectURI,
  2. String? state,
  3. List<PromptOption>? prompt,
  4. String? loginHint,
  5. List<String>? uiLocales,
  6. ColorScheme? colorScheme,
  7. String? wechatRedirectURI,
  8. AuthenticationPage? page,
})

Implementation

Future<AuthenticateRequest> createAuthenticateRequest({
  required String redirectURI,
  String? state,
  List<PromptOption>? prompt,
  String? loginHint,
  List<String>? uiLocales,
  ColorScheme? colorScheme,
  String? wechatRedirectURI,
  AuthenticationPage? page,
}) async {
  final options = AuthenticateOptions(
    redirectURI: redirectURI,
    isSsoEnabled: authgear.isSsoEnabled,
    preAuthenticatedURLEnabled: authgear.preAuthenticatedURLEnabled,
    state: state,
    prompt: prompt,
    loginHint: loginHint,
    uiLocales: uiLocales,
    colorScheme: colorScheme,
    wechatRedirectURI: wechatRedirectURI,
    page: page,
  );
  final request = await authgear.internalCreateAuthenticateRequest(options);
  return AuthenticateRequest.fromInternal(request);
}