How to get String value from Mono<String> token

Viewed 40

My use case is

I have one method

Mono Method1(String jwtToken)

Inside this I check this JWT claim and if token gets expires calls method Mono metho2( String JwtToken) to get refresh token.

How I will get string value out of method2 mono output, so that I can check the claims

Mono method1(String token){

Mono token = method2(String token);

String tokeenValue = Mono token

SignedJWT signedJWT = SignedJWT.parse(tokeenValue);

Please do not give suggestion to use block at it fails.

0 Answers
Related