-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
74 additions
and
82 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -152,7 +152,10 @@ Let's test this with a real user account! | |
|
||
## Testing Authentication Flow | ||
|
||
Let's test out our new authentication flow. You can run the following code in a file or notebook. | ||
Let's test out our new authentication flow. You can run the following code in a file or notebook. You will need to provide: | ||
- A valid email address | ||
- A Supabase project URL (from [above](#setup-auth-provider)) | ||
- A Supabase service role key (also from [above](#setup-auth-provider)) | ||
|
||
```python | ||
import os | ||
|
@@ -199,7 +202,7 @@ Then run the code. | |
!!! tip "About test emails" | ||
We'll create two test accounts by adding "+1" and "+2" to your email. For example, if you use "[email protected]", we'll create "[email protected]" and "[email protected]". All emails will be delivered to your original address. | ||
|
||
⚠️ Before continuing: Check your email and click both confirmation links. | ||
⚠️ Before continuing: Check your email and click both confirmation links. Supabase will will reject `/login` requests until after you have confirmed your users' email. | ||
|
||
Now let's test that users can only see their own data. Make sure the server is running (run `langgraph dev`) before proceeding. The following snippet requires the "anon public" key that you copied from the Supabase dashboard while [setting up the auth provider](#setup-auth-provider) previously. | ||
|
||
|
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
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