1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00

Updated custom examples

This commit is contained in:
eldadfux 2019-10-12 22:11:29 +03:00
parent e00c168e2b
commit a72131167c
3 changed files with 36 additions and 3 deletions

View file

@ -1 +1,12 @@
test
let sdk = new Appwrite();
sdk
.setProject('')
;
sdk.auth.login(
'email@example.com',
'password',
'http://example.com/success', // required for JS SDK
'http://example.com/failure' // required for JS SDK
); // Will redirect to relevant page depends on the operation result

View file

@ -1 +1,11 @@
test 1
let sdk = new Appwrite();
sdk
.setProject('')
;
sdk.auth.oauth(
'facebook',
'http://example.com/success',
'http://example.com/failure'
); // Will redirect to relevant page depends on the operation result

View file

@ -1 +1,13 @@
test 2
let sdk = new Appwrite();
sdk
.setProject('')
;
sdk.auth.register(
'email@example.com',
'password',
'http://example.com/confirm',
'http://example.com/success', // required for JS SDK
'http://example.com/failure' // required for JS SDK
); // Will redirect to relevant page depends on the operation result