This repository was archived by the owner on Jun 19, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
src/FlowCtl.Infrastructure/Services/Authentication Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,10 +60,11 @@ public AuthenticationData LoginBearer(string token)
6060 if ( data . Username != null )
6161 data . Username = _protector . Unprotect ( data . Username ) ;
6262
63- if ( data ? . Type == AuthenticationType . Basic && data . Password != null )
63+ // data is guaranteed non-null within this scope, so we can evaluate authentication type directly.
64+ if ( data . Type == AuthenticationType . Basic && data . Password != null )
6465 data . Password = _protector . Unprotect ( data . Password ) ;
65-
66- if ( data ? . Type == AuthenticationType . Bearer && data . AccessToken != null )
66+
67+ if ( data . Type == AuthenticationType . Bearer && data . AccessToken != null )
6768 data . AccessToken = _protector . Unprotect ( data . AccessToken ) ;
6869 }
6970
You can’t perform that action at this time.
0 commit comments