diff --git a/packages/client/package.json b/packages/client/package.json index e2123a5..3f9c3e2 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@auth-tools/client", - "version": "0.0.1-alpha.3", + "version": "0.0.1-alpha.4", "description": "A structured authentication protocol for Javascript. (client)", "main": "dist/index.js", "repository": "https://github.com/auth-tools/auth-tools", diff --git a/packages/client/src/auth.ts b/packages/client/src/auth.ts index 625fa9d..c6d84ce 100644 --- a/packages/client/src/auth.ts +++ b/packages/client/src/auth.ts @@ -3,6 +3,7 @@ import { AuthProtocol, AuthRequest, AuthResponse, + Promisify, UseEventCallbacks, User, } from "@auth-tools/base"; @@ -22,7 +23,7 @@ type MethodReturn = export type AuthClientConnector = ( method: MethodName, data: AuthRequest -) => MethodReturn; +) => Promisify>; type TokenTypes = "accessToken" | "refreshToken";