TokenExchangeInterface
in
Application-owned asynchronous OAuth exchange. No HTTP or confidential secret is bundled here.
A distributed desktop application should delegate confidential exchange to its trusted backend.
Tags
Table of Contents
Methods
- exchange() : PromiseInterface<string|int, string>
Methods
exchange()
public
exchange(string $code, string $clientId, string $redirectUri) : PromiseInterface<string|int, string>
Parameters
- $code : string
- $clientId : string
- $redirectUri : string
Return values
PromiseInterface<string|int, string> —Nonempty access token; cancellation must abort pending work.