1
0
Fork 0
mirror of synced 2024-08-23 06:02:13 +12:00
appwrite/app/sdks/js/docs/examples/auth/oauth.md
2019-10-18 21:42:02 +03:00

13 lines
No EOL
255 B
Markdown

let sdk = new Appwrite();
sdk
.setProject('')
;
let promise = sdk.auth.oauth('bitbucket', 'https://example.com', 'https://example.com');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});