@@ -643,6 +643,18 @@ client.auth.reset_password_email(
643643)
644644` ` `
645645
646+ </TabPanel>
647+ </$Show>
648+ <$Show if="sdk:dart">
649+ <TabPanel id="dart" label="Dart">
650+
651+ ` ` ` dart
652+ await supabase .auth .resetPasswordForEmail (
653+ 654+ redirectTo: ' http://example.com/account/update-password' ,
655+ );
656+ ` ` `
657+
646658</TabPanel>
647659</$Show>
648660</Tabs>
@@ -937,6 +949,15 @@ supabase.gotrue.sendRecoveryEmail(
937949supabase .
auth .
reset_password_email (
' [email protected] ' )
938950` ` `
939951
952+ </TabPanel>
953+ </$Show>
954+ <$Show if="sdk:dart">
955+ <TabPanel id="dart" label="Dart">
956+
957+ ` ` ` dart
958+ await supabase .
auth .
resetPasswordForEmail (
' [email protected] ' );
959+ ` ` `
960+
940961</TabPanel>
941962</$Show>
942963</Tabs>
@@ -992,6 +1013,17 @@ supabase.auth.updateUser {
9921013supabase .auth .update_user ({' password' : ' new_password' })
9931014` ` `
9941015
1016+ </TabPanel>
1017+ </$Show>
1018+ <$Show if="sdk:dart">
1019+ <TabPanel id="dart" label="Dart">
1020+
1021+ ` ` ` dart
1022+ final UserResponse res = await supabase .auth .updateUser (
1023+ UserAttributes (password: ' new_password' ),
1024+ );
1025+ ` ` `
1026+
9951027</TabPanel>
9961028</$Show>
9971029</Tabs>
@@ -1098,6 +1130,18 @@ supabase.auth.sign_up({
10981130})
10991131` ` `
11001132
1133+ </TabPanel>
1134+ </$Show>
1135+ <$Show if="sdk:dart">
1136+ <TabPanel id="dart" label="Dart">
1137+
1138+ ` ` ` dart
1139+ final AuthResponse res = await supabase .auth .signUp (
1140+ phone: ' +13334445555' ,
1141+ password: ' some-password' ,
1142+ );
1143+ ` ` `
1144+
11011145</TabPanel>
11021146</$Show>
11031147<TabPanel id="http" label="HTTP">
@@ -1187,6 +1231,21 @@ supabase.auth.verify_otp({
11871231})
11881232` ` `
11891233
1234+ </TabPanel>
1235+ </$Show>
1236+ <$Show if="sdk:dart">
1237+ <TabPanel id="dart" label="Dart">
1238+
1239+ You should present a form to the user so they can input the 6 digit pin, then send it along with the phone number to ` verifyOTP` :
1240+
1241+ ` ` ` dart
1242+ final AuthResponse res = await supabase .auth .verifyOTP (
1243+ phone: ' +13334445555' ,
1244+ token: ' 123456' ,
1245+ type: OtpType .sms ,
1246+ );
1247+ ` ` `
1248+
11901249</TabPanel>
11911250</$Show>
11921251<TabPanel id="http" label="HTTP">
@@ -1259,11 +1318,23 @@ supabase.auth.signInWith(Phone) {
12591318
12601319` ` ` python
12611320supabase .auth .sign_in_with_password ({
1262- ' phone' : " +13334445555"
1321+ ' phone' : " +13334445555" ,
12631322 ' password' : " some-password"
12641323})
12651324` ` `
12661325
1326+ </TabPanel>
1327+ </$Show>
1328+ <$Show if="sdk:dart">
1329+ <TabPanel id="dart" label="Dart">
1330+
1331+ ` ` ` dart
1332+ final AuthResponse res = await supabase .auth .signInWithPassword (
1333+ phone: ' +13334445555' ,
1334+ password: ' some-password' ,
1335+ );
1336+ ` ` `
1337+
12671338</TabPanel>
12681339</$Show>
12691340<TabPanel id="http" label="HTTP">
0 commit comments