Hello, I've implemented emailpassword recipe with ...
# support-questions-legacy
t
Hello, I've implemented emailpassword recipe with fastify node.js backend and vue 3 frontend. I did the rest api endpoints authentication using verifySession as per the documentation. But whenever the access token expires it doesnt get refreshed through refresh token and im getting an error message: "try refresh token". I dont understand where im going wrong.
r
hey @techuser9244 are you using axios or fetch on the frontend?
t
Im using fetch
r
have you done supertokens.init on the frontend before calling this API?
t
I did it on the backend
Do we need to handle the refresh token after access token expires or supertokens handle it on its own
r
you need to use our frontend SDK as well
it handles refreshingo n it's own
checkout the quick setup -> frontend section please