Overview

You will need to perform the following sequence of steps in order to authenticate the user.

OAuth 2.0 flow

Step 1: Open the authorize dialog

Send the user to Restream OAuth2 Login page.

Step 2: Capture the authorization code

Capture the response code on your redirect endpoint via a webhook.

Step 3: Exchange the code for tokens

Exchange a code for a token pair.

Step 4: Refresh access tokens

Refresh expired access tokens.

Step 5: Revoke tokens

Revoke tokens when the user signs out or you revoke access.