Is the passport file supposed to be named, '[...auth].ts' ? #2129
-
I'm a bit confused about the tutorial Third Party Login with Passport. The tutorial says the following.
I see that strange filename and it makes me wonder... Is the tutorial telling me to specifically use the filename, For example, if I'm implementing a Twitter login, should I be creating the file, 'app/api/auth/twitter.js'? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
api/auth/[...auth].ts
is indeed the correct filename. It's a so-called dynamic API Route, which basically matches all routes that start withauth/
.