useLogin is loading 4ever.... plz help
I started to notice something strange with my useLogin hook. It stopped calling authProvider.login and the mutation is stuck in state 'paused'. In order to understand if I have messed something up I installed
npm create refine-app@latest -- --example with-custom-pages
But the same behaviour.
My setup System: - OS: macOS 13.4 - CPU: (10) arm64 Apple M1 Pro Binaries: - Node: 20.3.1 - ~/.nvm/versions/node/v20.3.1/bin/node - Yarn: 1.22.19 - ~/.yarn/bin/yarn - npm: 9.6.7 - ~/.nvm/versions/node/v20.3.1/bin/npm Browsers: - Chrome: 114.0.5735.133 - Safari: 16.5 Refine Packages: - @refinedev/antd: 5.26.0 - @refinedev/cli: 2.7.0 - @refinedev/core: 4.25.0 - @refinedev/react-router-v6: 4.3.2 - @refinedev/simple-rest: 4.5.0 Any ideas what can have caused the problem?
My setup System: - OS: macOS 13.4 - CPU: (10) arm64 Apple M1 Pro Binaries: - Node: 20.3.1 - ~/.nvm/versions/node/v20.3.1/bin/node - Yarn: 1.22.19 - ~/.yarn/bin/yarn - npm: 9.6.7 - ~/.nvm/versions/node/v20.3.1/bin/npm Browsers: - Chrome: 114.0.5735.133 - Safari: 16.5 Refine Packages: - @refinedev/antd: 5.26.0 - @refinedev/cli: 2.7.0 - @refinedev/core: 4.25.0 - @refinedev/react-router-v6: 4.3.2 - @refinedev/simple-rest: 4.5.0 Any ideas what can have caused the problem?
![No description](https://cdn.answeroverflow.com/1123199657594585178/image.png)
![No description](https://cdn.answeroverflow.com/1123199658202771577/image.png)
8 Replies
Hi @drkrall. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. However, I can provide you with some helpful documentation on the
useLogin
hook and authentication in refine:
- useLogin Hook Documentation (https://refine.dev/docs/api-reference/core/hooks/authentication/useLogin)
- Understanding AuthProvider Tutorial (https://refine.dev/docs/tutorial/understanding-authprovider/index)
- Auth Provider Migration Guide (https://refine.dev/docs/migration-guide/auth-provider)
Please review these resources to see if they can help you identify the issue. If you still have problems, consider reaching out to the refine community or opening an issue on their GitHub repository.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------<@955203101466427472> kapa.ai is still learning and improving, please let us how it did by reacting below
harsh-harlequin•15mo ago
did you change anything in the code ? 🤔
deep-jade•15mo ago
Nope, I have not changed anything in the code.
I tried Safari and it actually works fine so the issue must be related to Chrome
harsh-harlequin•15mo ago
with-custom-pages@3.25.0 refine refine "whoami"System: - OS: macOS 13.2.1 - CPU: (8) arm64 Apple M1 Pro Binaries: - Node: 18.5.0 - ~/.nvm/versions/node/v18.5.0/bin/node - Yarn: 1.22.17 - /opt/homebrew/bin/yarn - npm: 8.12.1 - ~/.nvm/versions/node/v18.5.0/bin/npm Browsers: - Chrome: 114.0.5735.198 - Safari: 16.3 Refine Packages: - @refinedev/antd: 5.26.0 - @refinedev/cli: 2.7.0 - @refinedev/core: 4.25.0 - @refinedev/react-router-v6: 4.3.2 - @refinedev/simple-rest: 4.5.0 i run this app with chrome. there is no problem do you have any errors on chrome console ?
deep-jade•15mo ago
I upgraded Chrome and now it works with Chrome as well 🙂
harsh-harlequin•15mo ago
please let us know if you encounter any other problem
deep-jade•15mo ago
It works fine now! Many thanks!!