1
0
Fork 0
mirror of synced 2024-08-22 05:31:31 +12:00
appwrite/app/sdks/node/docs/examples/auth/oauth-callback.md
2019-06-09 21:13:55 +03:00

14 lines
No EOL
257 B
Markdown

let sdk = new Appwrite();
sdk
setProject('')
setKey('')
;
let promise = sdk.auth.oauthCallback('[PROJECT_ID]', 'bitbucket', '[CODE]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});