Is there a way to get user refresh token for Cognito using AWS Amplify Gen 2?
import { Amplify } from "aws-amplify"
import { signIn, signOut, getCurrentUser, fetchAuthSession } from "aws-amplify/auth"
const session: AuthSession = await fetchAuthSession();
‘session.tokens’ contains the only accessToken and idToken. I’d like to store refresh token in backend for future needs.
Thank you.