Working with passport js
Closed this issue · 3 comments
dechans commented
Hi,
I'm looking to integrate passportjs with typescript and overnight js, but it don't work.
Please, do you have or can you do an example with typescript, overnight js and passport (google) integration ?
I'm lost.
Thanks
seanpmaxwell commented
I haven't used Passport. I do use GoogleAuth. But I just call the GoogleAuth API from within my API. Can you post a code example?
seanpmaxwell commented
Looks to me like Passport is a middleware. You would just add it like you would any other @Middleware decorator or you could in the Serve class using this.app.use(/* passport object */).
dechans commented
Yes, you're right, need to use @Middleware(passport.auth....)
Thanks a lot