Problem with custom authChecker function #1322
Unanswered
juretopolak
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Oh, this is my testing project :) |
Beta Was this translation helpful? Give feedback.
1 reply
-
There are no stupid questions, but I suppose this one is really close! :D |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
I started learning TypeScript a while ago so I must admit, that I only know the basics... But I came across this project and couldn't resist testing it.
So far I've managed to set up CRUD GraphQL resolvers based on the Prisma scheme. After that, I wanted to add the authChecker for handling Autorization but I can't get over the TypeScript error below.
I basically followed @MichalLytek's example, using the same custom auth checker function, but still have an error in my app:
https://github.com/MichalLytek/type-graphql/tree/master/examples/authorization
Types are really advanced here and I know this might be too advanced for a beginner, but still... I would really appreciate it if anyone could help me move forward!
Beta Was this translation helpful? Give feedback.
All reactions