Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

add some signup code samples

dshukertjr9342529e8b75
diff --git a/spec/supabase_dart_v1.yml b/spec/supabase_dart_v1.yml
index 1918a153718..1da09b8a82c 100644
--- a/spec/supabase_dart_v1.yml
+++ b/spec/supabase_dart_v1.yml
@@ -77,11 +77,32 @@ functions:
final Session? session = res.session;
final User? user = res.user;
```
- - id: sign-up-with-third-party-providers
- name: Sign up with third-party providers.
- hideCodeBlock: true
- description: |
- If you are using Flutter, you can sign up with OAuth providers using the [`signInWithOAuth()`](/docs/reference/dart/auth-signinwithoauth) method available on `supabase_flutter`.
+ - id: sign-up-with-metadata
+ name: Sign up with additional metadata
+ isSpotlight: true
+ code: |
+ ```dart
+ final AuthResponse res = await supabase.auth.signUp(
+ email: '[email protected]',
+ password: 'example-password',
+ data: {'username': 'my_user_name'},
+ );
+ final Session? session = res.session;
+ final User? user = res.user;
+ ```
+ - id: sign-up-with-redirect-url
+ name: Sign up with redirect URL
+ isSpotlight: true
+ code: |
+ ```dart
+ final AuthResponse res = await supabase.auth.signUp(
+ email: '[email protected]',
+ password: 'example-password',
+ emailRedirectTo: 'com.supabase.myapp://callback',
+ );
+ final Session? session = res.session;
+ final User? user = res.user;
+ ```
- id: sign-in-with-password
title: 'signInWithPassword()'