From 7f9781e40a9657fd9883e720e6d9971794d6cdec Mon Sep 17 00:00:00 2001 From: Hunain Bin Sajid Date: Tue, 10 Sep 2024 18:28:12 +0500 Subject: [PATCH] Feat/session info (#25) * feat: get session info from extension * docs: session info type --- src/client.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/client.ts b/src/client.ts index bec39a0..a85ffac 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1,8 +1,17 @@ +export interface SessionArgs { + oneTime?: boolean; +} + export interface AuthorizeArgs { /** * The optional message to provide to the extension */ message?: string; + /** + * The optional message to provide to the extension + */ + session?: SessionArgs; + } export interface AuthorizeResultCredential { @@ -34,6 +43,8 @@ export interface AuthorizeResult { * If the extension responds with an identifier, the data will be contained here. */ identifier?: AuthorizeResultIdentifier; + + headers?: Record; } export interface SignDataArgs {