rafaelsilva81
rafaelsilva81
Explore posts from servers
TTCTheo's Typesafe Cult
Created by rafaelsilva81 on 1/5/2024 in #questions
Syncing data from clerk sign up to database
i thought about something like that initially, but i figured maybe there was some other way but I think this is what ill end up doing, thanks!
7 replies
TTCTheo's Typesafe Cult
Created by rafaelsilva81 on 2/22/2023 in #questions
react query not updating the `error` field on errors
I managed to fix this using the onError() option, but I found this strange... doesn't feel like it should work like this...
5 replies
TTCTheo's Typesafe Cult
Created by rafaelsilva81 on 2/22/2023 in #questions
react query not updating the `error` field on errors
my bad, should have provided with the description
const {
data: user,
isLoading,
error,
} = useQuery<UserResponse, AxiosError>('user', async () => {
return api.get('/user').then((res) => res.data);
});
const {
data: user,
isLoading,
error,
} = useQuery<UserResponse, AxiosError>('user', async () => {
return api.get('/user').then((res) => res.data);
});
5 replies
TTCTheo's Typesafe Cult
Created by rafaelsilva81 on 2/2/2023 in #questions
Next-auth with auth0 immediate login
Found the solution myself, but will keep this here in case anyone has the same issue: add this config to you Auth0Provider instance authorization: https://${env.AUTH0_ISSUER}/authorize?response_type=code&prompt=login
2 replies