mirror of
https://github.com/lucaspalomodevelop/auth-tools.git
synced 2026-03-13 06:09:37 +00:00
fix return types
This commit is contained in:
parent
8abca8466f
commit
9ab04b94e4
@ -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",
|
||||
|
||||
@ -3,6 +3,7 @@ import {
|
||||
AuthProtocol,
|
||||
AuthRequest,
|
||||
AuthResponse,
|
||||
Promisify,
|
||||
UseEventCallbacks,
|
||||
User,
|
||||
} from "@auth-tools/base";
|
||||
@ -22,7 +23,7 @@ type MethodReturn<MethodName extends keyof AuthProtocol> =
|
||||
export type AuthClientConnector<MethodName extends keyof AuthProtocol> = (
|
||||
method: MethodName,
|
||||
data: AuthRequest<MethodName>
|
||||
) => MethodReturn<MethodName>;
|
||||
) => Promisify<MethodReturn<MethodName>>;
|
||||
|
||||
type TokenTypes = "accessToken" | "refreshToken";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user