Choosing the Right Authorization Flow
SwAuth provides 3 different OAuth 2.0 authorization flows to use:
AuthorizationCodeFlow , PKCEAuthorizationFlow , and DeviceAuthorizationFlow . Choosing which one to use and in what context can be difficult.protocol Swauthable All of the authorization flows (
AuthorizationCodeFlow , PKCEAuthorizationFlow , DeviceAuthorizationFlow ) conform to this protocol.