File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/shared/modules/global Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,13 @@ export class JwtService implements OnModuleInit {
94
94
// Get the signing key from Auth0
95
95
const signingKey = await this . getSigningKey ( tokenHeader . kid ) ;
96
96
97
+
98
+ console . log ( `Signing key: ${ JSON . stringify ( signingKey ) } ` ) ;
99
+
97
100
// Verify options
98
101
const verifyOptions : VerifyOptions = {
99
102
issuer : AuthConfig . jwt . issuer ,
100
- audience : AuthConfig . jwt . audience ,
103
+ // audience: AuthConfig.jwt.audience,
101
104
clockTolerance : AuthConfig . jwt . clockTolerance ,
102
105
ignoreExpiration : AuthConfig . jwt . ignoreExpiration ,
103
106
} ;
@@ -111,12 +114,14 @@ export class JwtService implements OnModuleInit {
111
114
} else {
112
115
// In development, just decode the token without verification
113
116
decodedToken = decode ( token ) ;
117
+
114
118
}
115
119
116
120
if ( ! decodedToken ) {
117
121
throw new UnauthorizedException ( 'Invalid token' ) ;
118
122
}
119
123
124
+ console . log ( `Decoded token: ${ JSON . stringify ( decodedToken ) } ` ) ;
120
125
const user : JwtUser = { isMachine : false } ;
121
126
122
127
// Check for M2M token from Auth0
You can’t perform that action at this time.
0 commit comments