Skip to content

Commit

Permalink
fix: rm old 'EncodedAuthToken' opaque type
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Jun 28, 2023
1 parent f5ec44b commit d8db58f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/authService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { httpService } from "./httpService";
import type { User, WorkOrder, Invoice, Contact } from "@graphql/types";
import type { EncodedAuthToken } from "@types";

export const authService = {
registerNewUser: async (userRegArgs: RegisterNewUserParams): Promise<AuthServiceToken> => {
Expand Down Expand Up @@ -36,7 +35,8 @@ export type RegisterNewUserParams = Required<Pick<User, "handle" | "email" | "ph
export type LoginParams = Omit<RegisterNewUserParams, "phone" | "profile">;

export type AuthServiceToken = {
token: EncodedAuthToken;
/** An encoded auth token string. */
token: string;
};

export type PreFetchedUserItems = {
Expand Down

0 comments on commit d8db58f

Please sign in to comment.