Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://www.example.com/oauth/login
- &scope=user.profile,user.messages
- $secret = 'Some derived code unique to that user that authenticated';
- $b64 = array('uuid' => 'The users ID', 'scopes' => array('Contains the scopes the user allowed'));
- // Some code to store this key into the database cross-referenced to the uuid
- die(json_encode(FirebaseJWTJWT::encode($b64, $secret)));
Add Comment
Please, Sign In to add comment