Skip to content

Commit

Permalink
Merge pull request #125 from atlp-rwanda/fix-google-auth-2
Browse files Browse the repository at this point in the history
fix: fixes google auth callback url
  • Loading branch information
faid-terence authored Jul 19, 2024
2 parents d0dfd92 + ee8d7de commit d33ca3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/vendorOrderServices/readVendorOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const getSingleVendorOrderService = async (req: Request, res: Response) =
id: vendorOrder.order.buyer.id,
firstName: vendorOrder.order.buyer.firstName,
lastName: vendorOrder.order.buyer.lastName,
email: vendorOrder.order.buyer.lastName,
email: vendorOrder.order.buyer.email,
gender: vendorOrder.order.buyer.gender,
phoneNumber: vendorOrder.order.buyer.phoneNumber,
photoUrl: vendorOrder.order.buyer.photoUrl,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ passport.use(
{
clientID: process.env.GOOGLE_CLIENT_ID as string,
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
callbackURL: `http://localhost:${process.env.PORT || 8000}/user/auth/google/callback/`,
callbackURL: `${process.env.API_URL}/user/auth/google/callback/`,
scope: ['email', 'profile'],
},
async (accessToken: any, refreshToken: any, profile: any, cb: any) => {
Expand Down

0 comments on commit d33ca3a

Please sign in to comment.