Skip to content

Commit

Permalink
GITBOOK-82: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerbot authored and gitbook-bot committed Jun 28, 2023
1 parent 66c0cdb commit 9525653
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/Dropdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/CONTENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* [Adding Users to your Database](guides/connecting-to-your-database.md)
* [Authenticating Users in your App](guides/authenticating-users-in-your-app.md)
* [Setup with Supabase](guides/setup-with-supabase.md)
* [Requesting Email](guides/requesting-email.md)
* [Connected Accounts](guides/connected-accounts.md)
* [Using Smart Contract Wallets](guides/using-smart-contract-wallets.md)

## Platform
Expand Down
2 changes: 2 additions & 0 deletions docs/guides/connected-accounts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Connected Accounts

29 changes: 29 additions & 0 deletions docs/guides/requesting-email.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
description: Using the connected email scope
---

# Requesting Email

This guide will walk you through how to request email addresses from your user using the Email [Scope](../reference/scopes.md).

### Step 1

In your application OAuth configuration make sure that email is selected in the "allowed scopes" dropdown. Make sure to save this configuration before moving to step 2.

<figure><img src="../.gitbook/assets/CleanShot 2023-06-28 at 13.30.13.png" alt=""><figcaption><p>Email Scope Dropdown</p></figcaption></figure>

### Step 2

When [logging in users](../getting-started/auth-flow.md) make sure you add `email` to the `scope` query param. Your auth url should look something like this `https://<rollup.id or your custom domain>/authorize?client_id=xxx&state=xxx&scope=email`

### Step 3

After authenticating into your custom Rollup application, your users will we be presented with an authorization screen containing the email scope authorization request.

If the user already as a connected email, this email will be automatically selected. If no email address is connected to their identity they can connect an new email address and continue.&#x20;

<figure><img src="../.gitbook/assets/Dropdown.png" alt=""><figcaption><p>Email Authorization</p></figcaption></figure>

### Step 4

When redirected back to your application, the [access token](../advanced/tokens.md) will now contain an authorization for email address. The email address will also be available returned in the user token via the [user info endpoint](../reference/passport-api.md#user-info).

0 comments on commit 9525653

Please sign in to comment.