implemented oauth state parameter
This commit is contained in:
parent
135f40f65d
commit
d34ff79fd7
2 changed files with 12 additions and 4 deletions
|
@ -80,7 +80,7 @@ module.exports = function() {
|
|||
app.route('/signin', body(require('../pages/signin')));
|
||||
app.route('/api/fxa/oauth', async function(state, emit) {
|
||||
try {
|
||||
await state.user.finishLogin(state.query.code);
|
||||
await state.user.finishLogin(state.query.code, state.query.state);
|
||||
emit('replaceState', '/');
|
||||
} catch (e) {
|
||||
emit('replaceState', '/error');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue