auth-module icon indicating copy to clipboard operation
auth-module copied to clipboard

Waiting for user fetch?

Open aldarund opened this issue 8 years ago • 2 comments

Problem is following. If u use this module with any route protection ( like a buildin middleware auth/no-auth) if you reload page on the protected page it will redirect you to the unprotected path because fetching user info not yet finished. How to protect path so they work properly on reload, e.g. it should wait for auth-module to complete it fetch user request before deciding anything. But i dont see a way for this using auth-module. I dont even see a way to tell if fetching already failed and user not auth or its not yet finished fetching.. Am i missing something?

This question is available on Nuxt.js community (#c20)

aldarund avatar Dec 21 '17 23:12 aldarund

Hey @aldarund. If possible, please provide a basic reproduction code for your conditions and reopen this. I would be happy helping more :)

pi0 avatar Dec 29 '17 15:12 pi0

Напиши мне, помогу чем смогу

ak4code avatar Dec 30 '17 07:12 ak4code