createReauthenticateRequest method

Future<AuthenticateRequest> createReauthenticateRequest({
  1. required String redirectURI,
  2. required String idTokenHint,
  3. String? state,
  4. List<String>? uiLocales,
  5. ColorScheme? colorScheme,
  6. String? wechatRedirectURI,
})

Implementation

Future<AuthenticateRequest> createReauthenticateRequest({
  required String redirectURI,
  required String idTokenHint,
  String? state,
  List<String>? uiLocales,
  ColorScheme? colorScheme,
  String? wechatRedirectURI,
}) async {
  final options = ReauthenticateOptions(
    redirectURI: redirectURI,
    isSsoEnabled: authgear.isSsoEnabled,
    state: state,
    uiLocales: uiLocales,
    colorScheme: colorScheme,
    wechatRedirectURI: wechatRedirectURI,
  );
  final request = await authgear.internalCreateReauthenticateRequest(
      idTokenHint, options);
  return AuthenticateRequest.fromInternal(request);
}