1 Answer
- Newest
- Most votes
- Most comments
4
You may force a session refresh by using the fetchAuthSession method with the forceRefresh flag:
import { fetchAuthSession } from "aws-amplify/auth";
const session = await fetchAuthSession({ forceRefresh: true });
Relevant content
- asked 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago