forked from hailey.at/cocoon
An atproto PDS written in Go

invert check for native client metadata

Changed files
+1 -1
oauth
client
+1 -1
oauth/client/manager.go
··· 289 return nil, errors.New("at least one `redirect_uri` is required") 290 } 291 292 - if metadata.ApplicationType == "native" && metadata.TokenEndpointAuthMethod == "none" { 293 return nil, errors.New("native clients must authenticate using `none` method") 294 } 295
··· 289 return nil, errors.New("at least one `redirect_uri` is required") 290 } 291 292 + if metadata.ApplicationType == "native" && metadata.TokenEndpointAuthMethod != "none" { 293 return nil, errors.New("native clients must authenticate using `none` method") 294 } 295