Open yaquawa opened 3 years ago
considering this piece of code.
const url = 'xxx' const jwtToken = async () => { return await getJwtToken() } const auth = { type: 'AMAZON_COGNITO_USER_POOLS', jwtToken, } const userPoolsAuthLink = createAuthLink({ url, region, auth })
the jwtToken is a function, which should be called for every request, but seems like the package aws-appsync-auth-link only called it once at the first time. This will cause problem when the jwtToken expired.
jwtToken
aws-appsync-auth-link
Any updates on this?
considering this piece of code.
the
jwtToken
is a function, which should be called for every request, but seems like the packageaws-appsync-auth-link
only called it once at the first time. This will cause problem when the jwtToken expired.