createSession()
Create an OAuth session and get the authorization URL.authorize_url in their browser. After they approve, Airstore handles the callback.
Parameters
Returns
Promise<OAuthSession>
getSession()
Check the current status of an OAuth session.
Returns
Promise<OAuthSessionStatus>
poll()
Poll a session until it completes, errors, or times out. This is a convenience wrapper aroundgetSession() that checks at a regular interval.
Returns
Promise<OAuthSessionStatus> — resolves with status: "complete".
Throws
AirstoreErrorif the session status iserror(user denied, provider error, etc.)AirstoreErrorif the timeout is reached before the session completes