createAuthenticateRequest method
Future<AuthenticateRequest>
createAuthenticateRequest({
- required String redirectURI,
- String? state,
- List<
PromptOption> ? prompt, - String? loginHint,
- List<
String> ? uiLocales, - ColorScheme? colorScheme,
- String? wechatRedirectURI,
- 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);
}