Handling rejected permissions by user

Hello,

I am creating a .NET8 interactive server blazor application. I haven’t found an answer on how I could handle rejected permissions without getting the OpenIdConnectProtocolException.

Would be very grateful for any help, thanks

Sara