1
0
Fork 0
mirror of synced 2024-09-12 23:53:15 +12:00
appwrite/app/sdks/node/docs/examples/auth/oauth-callback.md
2019-09-12 19:20:03 +03:00

19 lines
No EOL
347 B
Markdown

const sdk = require('node-appwrite');
// Init SDK
let client = new Auth.Client();
let auth = new sdk.Auth(client);
client
setProject('')
setKey('')
;
let promise = auth.oauthCallback('[PROJECT_ID]', 'bitbucket', '[CODE]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});