I have to check whether the refresh token which we got from cognito along with access token is valid or not. Means need to check the refresh token is still active or not. Need the code snippets in java.
I have to check whether the refresh token which we got from cognito along with access token is valid or not. Means need to check the refresh token is still active or not. Need the code snippets in java.
To see the latest Java V2 (Not V1 - that is no longer recommended to use) and other AWS SDK code examples, look at the brand new Code Catelog that has been released only a month or so. Its is applicable to any supported AWS SDK langangue. This content has hundreds of examples in different programming languages - including Cognito and the AWS SDK for Java v2.
There is a very detailed example for Cognito that works with tokens and authentication.
It performs these steps.
See Sign up a user with an Amazon Cognito user pool that requires MFA using an AWS SDK