Skip to content

Commit

Permalink
feat: add loginWithGoogleToken method
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Mar 24, 2024
1 parent fed8071 commit fd68ac0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/services/authService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export const authService = {
...userLoginArgs,
});
},
loginWithGoogleToken: async (googleTokenLoginArgs: GoogleTokenLoginParams) => {
return await httpService.post("/auth/google-token", {
...googleTokenLoginArgs,
});
},
refreshAuthToken: async () => {
return await httpService.post("/auth/token");
},
Expand All @@ -20,3 +25,5 @@ export const authService = {
export type RegisterNewUserParams = RestApiRequestBodyByPath["/auth/register"];

export type LoginParams = RestApiRequestBodyByPath["/auth/login"];

export type GoogleTokenLoginParams = RestApiRequestBodyByPath["/auth/google-token"];

0 comments on commit fd68ac0

Please sign in to comment.