Skip to content

Commit 11f94bd

Browse files
Create Security
1 parent 2d9a97d commit 11f94bd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Security

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Use a password manager to store and generate passwords.
2+
Avoid password reuse across websites and apps.
3+
Avoid using personal information in passwords.
4+
Use Multi-Factor Authentication.
5+
const { data, error } = await supabase.auth.signInWithOtp({
6+
phone: '+13334445555',
7+
})const {
8+
data: { session },
9+
error,
10+
} = await supabase.auth.verifyOtp({
11+
phone: '13334445555',
12+
token: '123456',
13+
type: 'sms',
14+
}){
15+
"access_token": "<ACCESS_TOKEN>",
16+
"token_type": "bearer",
17+
"expires_in": 3600,
18+
"refresh_token": "<REFRESH_TOKEN>"
19+
}const { data, error } = await supabase.auth.updateUser({
20+
phone: '123456789',
21+
})

0 commit comments

Comments
 (0)