Wezter
Wezter2y ago

Authentication broke after bump to v10 from v9

Anyone that has any suggestions on what might have caused this? I get the following error when trying to sign in or sign up.:
"Cannot use 'in' operator to search for 'auth.signUp' in undefined"
"Cannot use 'in' operator to search for 'auth.signUp' in undefined"
Do I need to replace this with something new?
9 Replies
Alex / KATT 🐱
Have you enabled interop mode?
Alex / KATT 🐱
Migrate from v9 to v10 | tRPC
tRPC v10 is ready for production and can safely be used today.
Wezter
Wezter2y ago
Oh I missed that one, thanks a lot! Ran through so many things and that was the only thing I had to do, can't thank you enough! 😄
Wezter
Wezter2y ago
Sorry to bother you again but should this also be updated?
Alex / KATT 🐱
don't update that until you've updated the whole BE
Wezter
Wezter2y ago
and you think I should update all the routers before I continue with something else?
Alex / KATT 🐱
Read the docs
Alex / KATT 🐱
Define Procedures | tRPC
- A procedure can be viewed as the equivalent of a REST-endpoint or a function.
Wezter
Wezter2y ago
Yeah sorry I missed the end of the doc I was reading, been sitting too long by the computer I guess 😅 Is this something that isn't needed anymore in v10 or where can I read about this?(the merge part below)
.merge(
'me',
protectedRoute.query('', {
resolve: async ({ ctx }) => {
return ctx.user
},
})
)
.merge(
'me',
protectedRoute.query('', {
resolve: async ({ ctx }) => {
return ctx.user
},
})
)