@@ -28,7 +28,7 @@ export async function authRoutes(app: FastifyInstance) {
2828 }
2929
3030 // GitHub OAuth start
31- app . get ( '/github' , { preHandler : [ app . oauthStartRateLimit ] } , async ( request : FastifyRequest , reply : FastifyReply ) => {
31+ app . get ( '/github' , async ( request : FastifyRequest , reply : FastifyReply ) => {
3232 const redirectUri = `${ process . env . BACKEND_URL } /auth/github/callback` ;
3333 const clientState = ( request . query as any ) . state || '' ;
3434 const mobileRedirectUri = ( request . query as any ) . mobile_redirect_uri || '' ;
@@ -55,7 +55,7 @@ export async function authRoutes(app: FastifyInstance) {
5555 } ) ;
5656
5757 // GitHub OAuth callback
58- app . get ( '/github/callback' , { preHandler : [ app . oauthCallbackRateLimit ] } , async ( request : FastifyRequest < { Querystring : OAuthCallbackQuery } > , reply : FastifyReply ) => {
58+ app . get ( '/github/callback' , async ( request : FastifyRequest < { Querystring : OAuthCallbackQuery } > , reply : FastifyReply ) => {
5959 const { code, state } = request . query ;
6060 const storedState = request . cookies ?. oauth_state ;
6161 if ( ! state || ! storedState || state !== storedState ) {
@@ -151,7 +151,7 @@ export async function authRoutes(app: FastifyInstance) {
151151 } ) ;
152152
153153 // Google OAuth start
154- app . get ( '/google' , { preHandler : [ app . oauthStartRateLimit ] } , async ( request : FastifyRequest , reply : FastifyReply ) => {
154+ app . get ( '/google' , async ( request : FastifyRequest , reply : FastifyReply ) => {
155155 const redirectUri = `${ process . env . BACKEND_URL } /auth/google/callback` ;
156156 const clientState = ( request . query as any ) . state || '' ;
157157 const mobileRedirectUri = ( request . query as any ) . mobile_redirect_uri || '' ;
@@ -180,7 +180,7 @@ export async function authRoutes(app: FastifyInstance) {
180180 } ) ;
181181
182182 // Google callback
183- app . get ( '/google/callback' , { preHandler : [ app . oauthCallbackRateLimit ] } , async ( request : FastifyRequest < { Querystring : OAuthCallbackQuery } > , reply : FastifyReply ) => {
183+ app . get ( '/google/callback' , async ( request : FastifyRequest < { Querystring : OAuthCallbackQuery } > , reply : FastifyReply ) => {
184184 const { code, state } = request . query ;
185185
186186 const storedState = request . cookies ?. oauth_state ;
0 commit comments