From 18f22a3f5cba39c12780a12f56ac91264178aa26 Mon Sep 17 00:00:00 2001 From: Vitaly Kravtsov Date: Wed, 23 Oct 2024 16:27:48 +0600 Subject: [PATCH] feat(typescript): export auth utility types --- resources/sdk/typescript/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/sdk/typescript/index.ts b/resources/sdk/typescript/index.ts index 0c91cec..f53fc5f 100644 --- a/resources/sdk/typescript/index.ts +++ b/resources/sdk/typescript/index.ts @@ -566,11 +566,11 @@ const resourceOwnerLogout = auth.storage.set(undefined); }; -type BasicAuthorization = { +export type BasicAuthorization = { method: "basic"; credentials: { username: string; password: string }; }; -type ResourceOwnerAuthorization = { +export type ResourceOwnerAuthorization = { method: "resource-owner"; client: { id: string; secret: string }; storage: TokenStorage;