@devmoods/express-extras 0.26.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.js +2 -2
- package/package.json +1 -1
package/dist/auth.js
CHANGED
|
@@ -190,8 +190,8 @@ export function createAuth({ getUserByToken, filterUser = (x) => x, redis, provi
|
|
|
190
190
|
const token = createAuthToken(rest);
|
|
191
191
|
await redis.set(token, '1', { EX: TOKEN_EXPIRES_IN });
|
|
192
192
|
setAccessTokenCookie(res, token);
|
|
193
|
-
logger.info('refreshed token'
|
|
194
|
-
return { token };
|
|
193
|
+
logger.info('refreshed token');
|
|
194
|
+
return { token, user: filterUser(user) };
|
|
195
195
|
}));
|
|
196
196
|
for (const provider of providers) {
|
|
197
197
|
provider.setupRoutes(router, providerContext);
|