Unable to generate Paseto token

Hi,
I am facing issues while generating Pasetos token and

Pasetos.V2.LOCAL.builder()
.setSharedSecret(secretKey)
.setIssuedAt(now)
.setExpiration(now.plus(2, ChronoUnit.HOURS))
.setSubject(userPrincipal.getUsername())
.setKeyId(UUID.randomUUID().toString())
.setAudience(“bootlabs.com”)
.setIssuer(“dev.com”)
.claim(“aut”, authorities)
.compact();
throws-

Error: Failed to calculate BLAKE2b digest

Using - spring boot version - 3.0.2

Don’t find a clear reason behind this error.

Hello,

This is outside of the Okta Platform.
You might check this blog post from a few years back discussing these tokens.

Thank You,