Skip to content

Commit

Permalink
Feat/session info (WebOfTrust#25)
Browse files Browse the repository at this point in the history
* feat: get session info from extension

* docs: session info type
  • Loading branch information
HunnySajid authored Sep 10, 2024
1 parent fa8b5f1 commit 7f9781e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -34,6 +43,8 @@ export interface AuthorizeResult {
* If the extension responds with an identifier, the data will be contained here.
*/
identifier?: AuthorizeResultIdentifier;

headers?: Record<string, string>;
}

export interface SignDataArgs {
Expand Down

0 comments on commit 7f9781e

Please sign in to comment.