2019-10-13 08:11:29 +13:00
|
|
|
let sdk = new Appwrite();
|
|
|
|
|
|
|
|
sdk
|
|
|
|
.setProject('')
|
|
|
|
;
|
|
|
|
|
2019-10-13 08:17:24 +13:00
|
|
|
/**
|
|
|
|
* Will redirect to relevant page
|
|
|
|
* depends on the operation result
|
|
|
|
*/
|
2019-10-13 08:11:29 +13:00
|
|
|
sdk.auth.oauth(
|
|
|
|
'facebook',
|
|
|
|
'http://example.com/success',
|
|
|
|
'http://example.com/failure'
|
2019-10-13 08:17:24 +13:00
|
|
|
);
|