Skip to content

Commit df06ec4

Browse files
committed
Fixed absence of default value for tokenParserFactory
1 parent cef72de commit df06ec4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tokens/src/main/java/io/scalecube/security/tokens/jwt/JwtTokenResolverImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.scalecube.security.tokens.jwt;
22

3+
import io.scalecube.security.tokens.jwt.jsonwebtoken.JsonwebtokenParserFactory;
34
import java.security.Key;
45
import java.time.Duration;
56
import java.util.Map;
@@ -18,7 +19,7 @@ public final class JwtTokenResolverImpl implements JwtTokenResolver {
1819
private static final Logger LOGGER = LoggerFactory.getLogger(JwtTokenResolver.class);
1920

2021
private KeyProvider keyProvider;
21-
private JwtTokenParserFactory tokenParserFactory;
22+
private JwtTokenParserFactory tokenParserFactory = new JsonwebtokenParserFactory();
2223
private Scheduler scheduler = Schedulers.boundedElastic();
2324
private Duration cleanupInterval = Duration.ofSeconds(60);
2425

0 commit comments

Comments
 (0)