Drake
Drake
Explore posts from servers
RRefine
Created by xenial-black on 11/19/2022 in #ask-any-question
Extending AuthPage
Ahh thanks! I see what I did wrong now. I imported from the wrong package. I should done like https://github.com/refinedev/refine/blob/ef3122b79d008d7fe4b85d6a1e5a1441e3cdeb75/packages/mui/src/components/pages/auth/index.tsx#L4:
import { UseFormProps } from "@pankod/refine-react-hook-form";
import { UseFormProps } from "@pankod/refine-react-hook-form";
thanks for catching that!
16 replies
RRefine
Created by yammering-amber on 11/19/2022 in #ask-any-question
Extending AuthPage
same as the register component:
import { useForm } from "@pankod/refine-react-hook-form";
import { useForm } from "@pankod/refine-react-hook-form";
16 replies
RRefine
Created by genetic-orange on 11/19/2022 in #ask-any-question
Extending AuthPage
No description
16 replies
RRefine
Created by sensitive-blue on 11/18/2022 in #ask-any-question
Can't refetch Auth
Thanks! Weird react 😑
17 replies
RRefine
Created by fascinating-indigo on 11/19/2022 in #ask-any-question
Extending AuthPage
Ya I tried to copy the core auth page but there were some errors (maybe some typing error)
16 replies
RRefine
Created by stormy-gold on 11/19/2022 in #ask-any-question
Extending AuthPage
Womp womp
16 replies
RRefine
Created by adverse-sapphire on 11/18/2022 in #ask-any-question
Can't refetch Auth
this worked! Thanks! now I need to figure out why my mutate is being fired twice... 😅
17 replies
RRefine
Created by afraid-scarlet on 11/18/2022 in #ask-any-question
Can't refetch Auth
17 replies
RRefine
Created by typical-coral on 11/18/2022 in #ask-any-question
Can't refetch Auth
Appwrite uses teams for group permissions. A user can invite another user to a team and they'll get an email with a link that includes a secret. This page handles that link and calls the update team membership status API (the mutate call). That API call will also create a session
17 replies
RRefine
Created by ratty-blush on 11/18/2022 in #ask-any-question
Can't refetch Auth
but i have tried your suggestion and it's the same result
17 replies
RRefine
Created by foreign-sapphire on 11/18/2022 in #ask-any-question
Can't refetch Auth
btw, await account.get(); will either return the session or throw an exception...so that return Promise.reject(); will never be called
17 replies
RRefine
Created by foreign-sapphire on 11/18/2022 in #ask-any-question
Can't refetch Auth
checkAuth: async () => {
console.log("checkAuth");
await account.get();
},
checkAuth: async () => {
console.log("checkAuth");
await account.get();
},
😉 as you can guess, I'm connecting to Appwrite
17 replies
RRefine
Created by stormy-gold on 11/18/2022 in #ask-any-question
Can't refetch Auth
Btw, the user is not authenticated when reaching the page, but the mutate is supposed to create a session so the checkAuth is successful
17 replies