findAuthenticationFromEnvironment function Null safety

Authentication findAuthenticationFromEnvironment()

Looks for GitHub Authentication information from the current environment.

If in a browser context, it will look through query string parameters first and then sessionStorage.

If in a server, command line or Flutter context it will use the system environment variables.

In both contexts it delegates to findAuthenticationInMap to find the github token or username and password.

Implementation

Authentication findAuthenticationFromEnvironment() =>
    Authentication.anonymous();