express-battlenet-oauth
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "express-battlenet-oauth", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "OAuth Authentication for Battle.net (World of Warcraft, Starcraft 2 profiles) for ExpressJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -42,3 +42,3 @@ express-battlenet-oauth | ||
app.use('/', auth); | ||
app.use('/', bnet); | ||
@@ -82,4 +82,6 @@ //Setup your express app like normal | ||
<td>LOGIN_SUCCESS</td> | ||
<td>```function(req, res){ res.status(200).send('Use your own method to manipulate res.token_data, | ||
currently: ' + JSON.stringify(res.token_data))}```</td> | ||
<td> | ||
function(req, res){ res.status(200).send('Use your own method to manipulate res.token_data, | ||
currently: ' + JSON.stringify(res.token_data))} | ||
</td> | ||
<td>A function to handle a successful battle.net authentication, token data will be available at res.token_data</td> | ||
@@ -89,3 +91,5 @@ </tr> | ||
<td>LOGIN_FAILURE</td> | ||
<td>```function(req, res){ res.status(500).send(res.error) }``</td> | ||
<td> | ||
function(req, res){ res.status(500).send(res.error) } | ||
</td> | ||
<td>A function to handle a failed battle.net authentication (use declined access, bnet server errors, invalid | ||
@@ -92,0 +96,0 @@ grants, etc), error data will be available at res.error</td> |
9008
97