registerAuthorizationSession method

Future<AuthorizationSessionIntrospectResultDto?> registerAuthorizationSession(
  1. String? category,
  2. AuthorizationSessionRegisterDto? authorizationSessionRegisterDto
)

Implementation

Future<AuthorizationSessionIntrospectResultDto?> registerAuthorizationSession (
  String? category,
  AuthorizationSessionRegisterDto? authorizationSessionRegisterDto
) async {
  String path = "/authorization-session/$category";
  return AuthorizationSessionIntrospectResultDto.fromJson(
    await post(path, body: authorizationSessionRegisterDto, exemptClient:true) ?? {}
  );
}