Advertisement
AnthonyCagliano

Untitled

Feb 21st, 2023
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $oauth = new OAuth();
  2. $oauth->initialize('7o_dvRSjwOA2rfdlDTt1aaiXPHc', 'secret');
  3. $state = $oauth->generateStateToken();
  4.  
  5. OAuth.initialize('7o_dvRSjwOA2rfdlDTt1aaiXPHc')
  6. OAuth.popup('github', {
  7. state: stateFromServer
  8. }).done(function(result) {
  9. console.log(result)
  10. })
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement