-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added stytch guide * added guest wallet * updated stytch guide * updated cli in main authentication page * added allowed origin * updated language, removed cli command until in prod --------- Co-authored-by: James Lawton <[email protected]>
- Loading branch information
1 parent
422cc74
commit 9384af9
Showing
14 changed files
with
214 additions
and
26 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
docs/pages/solutions/builder/embedded-wallet/guest-wallet-configuration.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: Configuring Guest Wallet for Embedded Wallet Integration | ||
description: Learn how to configure a Guest wallet for your Embedded Wallet instance. | ||
--- | ||
|
||
import { Callout } from "vocs/components"; | ||
|
||
# Guest Wallet Configuration for Embedded Wallet | ||
|
||
Guest Wallets are a feature in the Sequence Stack that allow for ephemeral creation of an authentication idenity that lasts till the user clears their browser cache, or, sign's in again. | ||
|
||
This strategy for onboarding can be useful for providing ways to freely access your game or experience, increasing your conversion rate until players want to persist their information. | ||
|
||
Importantly, if users clear their cache or lose access to the device - any assets in the Guest Wallet will not be recoverable. Therefore, users should connect an additional authentication method if any value is associated with the wallet. | ||
|
||
<Callout type="warning"> | ||
The Guest Wallet feature is currently in early access. To enable it, please visit https://sequence.build/earlyaccess and turn on the functionality. | ||
</Callout> | ||
|
||
|
||
To configure the Embedded Wallet for Guest Wallet, this can be accomplished with the following steps: | ||
|
||
::::steps | ||
|
||
## Builder Configuration | ||
|
||
Access your project in Sequence builder, navigate to the Embedded Wallet Configuration section, then add a Login Provider: | ||
|
||
![add login provider](/img/builder/builder_guest_wallet_add_provider.png) | ||
|
||
Finally, selecting `Guest Wallet` in the dropdown. | ||
|
||
![select guest wallet](/img/builder/builder_guess_wallet_select_provider.png) | ||
|
||
And selecting the purple `Update configuration` to input your password to update the Configuration. | ||
|
||
## Implementation | ||
|
||
Once configured, you can implement a Guest Wallet with the following code and use it like any other Embedded Wallet: | ||
|
||
```typescript [App.tsx] | ||
await sequence.signIn({ guest: true }, "Session name"); | ||
``` | ||
:::: |
71 changes: 71 additions & 0 deletions
71
docs/pages/solutions/builder/embedded-wallet/stytch-configuration.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
title: Configuring Stytch Client for Embedded Wallet Integration | ||
description: Learn how to configure a Stytch client for your Embedded Wallet instance. Follow steps to create and retrieve a Public Token from the Stytch dashboard. | ||
--- | ||
|
||
import { Callout } from "vocs/components"; | ||
|
||
# Stytch Configuration for Embedded Wallet | ||
|
||
In order to have Stytch auth integrated into your Embedded Wallet instance, you have to configure a Stytch application in the [Stytch Dashboard](https://stytch.com/dashboard) and configure an Embedded Wallet in [Sequence Builder](https://sequence.build/). Begin, by starting with the following below steps: | ||
|
||
<Callout type="warning"> | ||
The Stytch authentication is currently in early access. To enable them, please visit https://sequence.build/earlyaccess and turn on the functionality. | ||
</Callout> | ||
|
||
|
||
::::steps | ||
|
||
## Sign Up / Sign In | ||
|
||
First access the [sign in page](https://stytch.com/dashboard): | ||
|
||
## Create a Project | ||
|
||
From the dropdown of projects once signed in, select `Create new project`: | ||
|
||
![Create a Project](/img/builder/stytch_create_new_project.png) | ||
|
||
Then select `CONSUMER AUTHENTICATION`: | ||
|
||
![Create new Project](/img/builder/stytch_create_project.png) | ||
|
||
And finally select `Create project` | ||
|
||
## Obtain a Stytch Project ID & Stytch Public Token | ||
|
||
From the bottom of the first screen of `Home` copy and save somewhere safe the `Stytch Project ID` & `Stych Public Token`: | ||
|
||
![Obtain a Project ID & Stytch Public Token](/img/builder/stytch_obtain_keys.png) | ||
|
||
## Update the Redirect URL | ||
|
||
For local development use `http://localhost:4444/authenticate` | ||
|
||
![Update Redirect Url](/img/builder/stytch_create_new_redirect_uri.png) | ||
|
||
Enable `Login` and `Register`, select `Set as default` and select `Confirm`: | ||
|
||
![Obtain a Project ID](/img/builder/stytch_create_new_redirect_uri_confirm.png) | ||
|
||
## Update the Allowed Origins for SDK | ||
|
||
For local development, ensure that your development URL is passed correclt such as `http://localhost:4444` | ||
|
||
![Update url for SDK](/img/builder/stytch_add_url_to_sdk.png) | ||
|
||
## Builder Configuration | ||
|
||
Next, enable Stytch authentication in the Sequence Builder by accessing your Project, the Embedded Wallet Configuration section, then adding a Login Provider: | ||
|
||
![add login provider](/img/builder/builder_stytch_add_provider.png) | ||
|
||
Finally, selecting `Stytch` in the dropdown. | ||
|
||
![select stytch](/img/builder/builder_stytch_select_provider.png) | ||
|
||
Then inputting your `Stytch Project ID`, selecting `Save changes` and selecting the purple `Update configuration` to input your password to update the Configuration. | ||
|
||
:::: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
docs/public/img/builder/builder_guess_wallet_select_provider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
docs/public/img/builder/builder_guest_wallet_add_provider.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.
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.
3 changes: 3 additions & 0 deletions
3
docs/public/img/builder/stytch_create_new_redirect_uri_confirm.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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters