fix(api-gateway): add session to response locals from web socket middleware
This commit is contained in:
parent
bcd1d830e6
commit
4cc647ac07
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ export class WebSocketAuthMiddleware extends BaseMiddleware {
|
|||
const decodedToken = <CrossServiceTokenData>verify(crossServiceToken, this.jwtSecret, { algorithms: ['HS256'] })
|
||||
|
||||
response.locals.user = decodedToken.user
|
||||
response.locals.session = decodedToken.session
|
||||
response.locals.roles = decodedToken.roles
|
||||
} catch (error) {
|
||||
const errorMessage = (error as AxiosError).isAxiosError
|
||||
|
|
Loading…
Reference in a new issue