···5151 }
5252 }
53535454-The login auth flow starts with a user identifier, which could be an atproto handle, DID, or an auth server URL (eg, a PDS). The high-level [StartAuthFlow()] method will resolve the identifier, send an auth request (PAR) to the server, persist request metadata in the [OAuthStore], and return a redirect URL for the user to visit:
5454+The login auth flow starts with a user identifier, which could be an atproto handle, DID, or an auth server URL (eg, a PDS). The high-level [StartAuthFlow()] method will resolve the identifier, send an auth request (PAR) to the server, persist request metadata in the [OAuthStore], and return a redirect URL for the user to visit (usually the PDS):
55555656 http.HandleFunc("GET /oauth/login", HandleLogin)
5757
···165165 // must include authorization_code and refresh_token (refresh tokens must be supported)
166166 GrantTypesSupported []string `json:"grant_types_supported"`
167167168168- /// must include S256
168168+ // must include S256
169169 CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported"`
170170171171- // must include both none (public client s) and private_key_jwt (confidential clients)
171171+ // must include both none (public clients) and private_key_jwt (confidential clients)
172172 TokenEndpointAuthMethodsSupoorted []string `json:"token_endpoint_auth_methods_supported"`
173173174174 // must not include `none`. Must include ES256 for now.
···183183 // must be true
184184 RequirePushedAuthorizationRequests bool `json:"require_pushed_authorization_requests"`
185185186186- // correspnds be the PAR endpoint URL
186186+ // corresponds to the PAR endpoint URL
187187 PushedAuthorizationRequestEndpoint string `json:"pushed_authorization_request_endpoint"`
188188189189 // currently must include ES256