Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Commit 0636176

Browse files
committed
README: Update request example in implicit grant
1 parent da0ff0e commit 0636176

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ window.oauth2Callback = function (uri) {
125125
console.log(user) //=> { accessToken: '...', tokenType: 'bearer', ... }
126126

127127
// Make a request to the github API for the current user.
128-
user.request({
128+
return popsicle.request(user.sign({
129129
method: 'get',
130130
url: 'https://api.github.com/user'
131-
}).then(function (res) {
131+
})).then(function (res) {
132132
console.log(res) //=> { body: { ... }, status: 200, headers: { ... } }
133133
})
134134
})

0 commit comments

Comments
 (0)