makeFlow function

Flow makeFlow(
  1. Client client, {
  2. List<String> scopes = const [],
})

Implementation

Flow makeFlow(Client client, {List<String> scopes = const []}) {
  return Flow.authorizationCode(
    client,
    state: window.localStorage['openid_client:state'],
    scopes: scopes,
    redirectUri: Uri.parse(window.location.href).removeFragment(),
  );
}