Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $oauth = new OAuth();
- $oauth->initialize('7o_dvRSjwOA2rfdlDTt1aaiXPHc', 'secret');
- $state = $oauth->generateStateToken();
- OAuth.initialize('7o_dvRSjwOA2rfdlDTt1aaiXPHc')
- OAuth.popup('github', {
- state: stateFromServer
- }).done(function(result) {
- console.log(result)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement