Afzal
CCConvex Community
•Created by Afzal on 9/15/2024 in #support-community
How to redirect to register page from restricted rout if new user
It does works fine now, thank a lot @ballingt & @sshader . I added these two to the convex tsconfig:
"baseUrl": ".",
"paths": {
"@/": ["../"]
}
16 replies
CCConvex Community
•Created by Afzal on 9/15/2024 in #support-community
How to redirect to register page from restricted rout if new user
The app is working as expected though, getting this log in convex terminal
16 replies
CCConvex Community
•Created by Afzal on 9/15/2024 in #support-community
How to redirect to register page from restricted rout if new user
Hi @sshader I read the documentation link you had shared above and implemneted similarly but getting this error:
16 replies
CCConvex Community
•Created by Afzal on 9/15/2024 in #support-community
How to redirect to register page from restricted rout if new user
But not sure if that is right way to do it.
16 replies
CCConvex Community
•Created by Afzal on 9/15/2024 in #support-community
How to redirect to register page from restricted rout if new user
It worked with above code i shared, I created a query function that checks if user is new user by fetching isAnonymus from users table. Then I used that query function in the middleware as you can see above.
16 replies
CCConvex Community
•Created by Afzal on 9/15/2024 in #support-community
How to redirect to register page from restricted rout if new user
Here is what my updated middleware looks like:
16 replies
CCConvex Community
•Created by Afzal on 9/15/2024 in #support-community
How to redirect to register page from restricted rout if new user
it got it fixed by removing the "()" from the function "const checkNewUser = api.users.isNewUser". But wanted to confirm if this is the right way to do it?
16 replies
CCConvex Community
•Created by Afzal on 9/15/2024 in #support-community
How to redirect to register page from restricted rout if new user
@sshader can you help me out on this?
16 replies
CCConvex Community
•Created by Afzal on 9/15/2024 in #support-community
How to redirect to register page from restricted rout if new user
Here is my middleware code:
`
16 replies
CCConvex Community
•Created by Afzal on 9/15/2024 in #support-community
How to redirect to register page from restricted rout if new user
16 replies
CCConvex Community
•Created by Afzal on 9/6/2024 in #support-community
Convex Auth with NodeMailer OTP
Its resolve, silly mistake: While using signIn function from useAuthActions I missed passing the "http-email" as prop, had just passed email from state.
Thanks @sshader
8 replies
CCConvex Community
•Created by Afzal on 9/6/2024 in #support-community
Convex Auth with NodeMailer OTP
Did checked this but didnt find any such file.
8 replies
CCConvex Community
•Created by Afzal on 9/6/2024 in #support-community
Convex Auth with NodeMailer OTP
Getting this in the Convex log: 'Provider
{email Id}
is not configured, available providers are http-email
, google
.'8 replies
CCConvex Community
•Created by Afzal on 9/6/2024 in #support-community
Convex Auth with NodeMailer OTP
8 replies
CCConvex Community
•Created by Afzal on 9/6/2024 in #support-community
Convex Auth with NodeMailer OTP
Yes, will try it out and see if it works.
8 replies