absent-sapphire
absent-sapphire15mo ago

No Google auth login options when creating refine app in cli

Hi first time using refine, i was trying to follow a jsm tutorial but when creating an app via the cli, I dont get the option to choose google auth login in the authentication Logic part juste none and custom is it normal or do i need an older version ?
No description
No description
10 Replies
kapa.ai
kapa.ai15mo ago
Hey @Rafael Dubois! I'm the kapa.ai support bot. I've searched through the docs to try to answer your question. :wave:
kapa.ai
kapa.ai15mo ago
---------------------- It looks like you're trying to follow a tutorial that uses an older version of refine. The current version of refine does not have the option to choose Google auth login in the authentication logic part. Instead, you can use the Auth0 provider (https://refine.dev/docs/advanced-tutorials/data-provider/supabase) to add Google Login option to the app. To do this, you'll need to install the required Auth0 package via the command npm install @auth0/auth0-react and wrap the whole app in the Auth0 provider in the index.tsx file in the src directory root. After that, you'll need to create a new account on Auth0 and create a new application. Once you have the keys for domain, client_id, and client secret, you can add them to the .env file in the app root. I hope this helps! ----------------------
Supabase | refine
Introduction
kapa.ai
kapa.ai15mo ago
<@692040256115048468> kapa.ai is still learning and improving, please let us how it did by reacting below
absent-sapphire
absent-sapphire15mo ago
It's not that easy because I dont have an index.tsx and all the logic is different And I just reinstalled the latest version and is still gives me import from 3.x.x I can't work with that
absent-sapphire
absent-sapphire15mo ago
No description
No description
generous-apricot
generous-apricot15mo ago
with refine@4, google and auth0 provider is removed from create refine-app. We can add in the future. we will discuss this with core team with pankod prefix, all packages are legacy and supports refine@3. we change organization name o @refinedev/core, @refinedev/react-hook-form etc. you can see this on https://refine.dev/docs/migration-guide/3x-to-4x/ btw, JSM video uses refine@3 refine@4 released today. i suggest you to use npx create refine-app@1.5.4 command for JSM tutorial. after you familiar with refine, you can follow migration guide to use latest version. it will be easy to update 3x to 4x
absent-sapphire
absent-sapphire15mo ago
Thank you very much ! I understand it's because it's very recent that I did not find anything about this issue
generous-apricot
generous-apricot15mo ago
we released 2 hours ago. but not anounced yet. sorry for confusion
absent-sapphire
absent-sapphire15mo ago
No' worries thank you for the fast response, i will try to migrate to @4 after finishing the tutorial ! I still dont get everything but that's a very powerful tool you created, thank you and the all the members ! I wish you success for the future
generous-apricot
generous-apricot15mo ago
thank you 🙏