From 9ab04b94e4cab9eda82b981d8f7212a364f0d809 Mon Sep 17 00:00:00 2001 From: Laurenz Rausche Date: Fri, 10 May 2024 20:16:08 +0000 Subject: [PATCH] fix return types --- packages/client/package.json | 2 +- packages/client/src/auth.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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";