Choose the PKCE flow, an extension of the authorization code flow
The PKCE flow is more secure than the authorization code flow, it protects against CRSF and authorization code injection attacks.
Follow the PKCE implementation guide.
As an extension of the authorization code flow, it is mostly the same with some additional parameters.
We let this documentation up, for legacy purpose.