Token, not credential
Delegating access means exchanging a short code for a scoped, short-lived token, done on the server where your secret lives. The third party holds a token it can revoke, never the account password.
PKCE for public clients
A browser or mobile app cannot keep a secret, so it uses PKCE: a random verifier only it knows ties the code exchange to the same client. Without it, an intercepted code can be traded for a token by anyone.