I am still struggling with a problem: If a protect a route on server-side the request to Cognito (Auth.currentAuthenticatedUser()) takes about 400-500ms. Doing the same on client-side the request takes only < 15ms. Both ways are implemented like in this example.
Maybe someone has got an idea or made a similar experience?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great post!
I am still struggling with a problem: If a protect a route on server-side the request to Cognito (
Auth.currentAuthenticatedUser()
) takes about 400-500ms. Doing the same on client-side the request takes only < 15ms. Both ways are implemented like in this example.Maybe someone has got an idea or made a similar experience?