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](https://cdn.answeroverflow.com/1085120729797902356/ecb3d035-f590-4fe1-a646-037912f6df5b.jpg)
![No description](https://cdn.answeroverflow.com/1085120730192158770/rn_image_picker_lib_temp_b822c695-1f84-46b6-b308-7254d27b2fc9.jpg)
10 Replies
Hey @Rafael Dubois! I'm the kapa.ai support bot. I've searched through the docs to try to answer your question. :wave:
----------------------
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
<@692040256115048468> kapa.ai is still learning and improving, please let us how it did by reacting below
fascinating-indigo•2y 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
fascinating-indigo•2y ago
![No description](https://cdn.answeroverflow.com/1085130228705267722/rn_image_picker_lib_temp_16c5ceeb-f697-4904-b4d5-4dcbca7f92e4.jpg)
![No description](https://cdn.answeroverflow.com/1085130229053403197/rn_image_picker_lib_temp_bc7a8f05-85bc-4d1f-ada8-f57d25c2e74b.jpg)
like-gold•2y 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 4xfascinating-indigo•2y ago
Thank you very much !
I understand it's because it's very recent that I did not find anything about this issue
like-gold•2y ago
we released 2 hours ago. but not anounced yet. sorry for confusion
fascinating-indigo•2y 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
like-gold•2y ago
thank you 🙏