Skip to content

Commit 834518f

Browse files
committed
fix(oauth): Fix displaying permissions already accepted
1 parent 31e052a commit 834518f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

server/login/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ exports.register = (server, { cache, cookie }, next) => {
6767
.then(() => saveUserSessionToCache(sid, { uid, device: req.plugins.scooter.toJSON().device.family }))
6868
.then(() => {
6969
req.cookieAuth.set({ sid });
70+
req.auth.credentials = user;
7071
return user;
7172
});
7273
});

0 commit comments

Comments
 (0)