Interface iSIWBBRequestDoc<T>

interface iSIWBBRequestDoc<T extends NumberType> {
    _docId: string;
    _id?: string;
    address: string;
    attestations: iAttestationsProof<T>[];
    bitbadgesAddress: string;
    chain: SupportedChain;
    clientId: string;
    code: string;
    codeChallenge?: string;
    codeChallengeMethod?: "S256" | "plain";
    createdAt: T;
    deletedAt?: T;
    description?: string;
    expiresAt: T;
    image?: string;
    name?: string;
    redirectUri?: string;
    scopes: OAuthScopeDetails[];
}

Type Parameters

Hierarchy (View Summary, Expand)

  • Doc
    • iSIWBBRequestDoc

Implemented by

Properties

_docId: string

A unique stringified document ID

_id?: string

A unique document ID (Mongo DB ObjectID)

address: string

The native address of the signer

attestations: iAttestationsProof<T>[]

If required, you can additionally attach proof of attestations ot the auth flow. These can be used to prove sensitive information to verifiers.

bitbadgesAddress: string

The BitBadges address of the signer

The native chain for the user

clientId: string

The client ID of the app that requested the signature

code: string

The actual code itself

codeChallenge?: string

The code challenge for the SIWBB request (if used with PKCE).

codeChallengeMethod?: "S256" | "plain"

The code challenge method for the SIWBB request (if used with PKCE).

createdAt: T

The timestamp of when the signature was created (milliseconds since epoch)

deletedAt?: T

If deleted, we still store temporarily for a period of time. We use a deletedAt timestamp to determine when to delete.

description?: string
expiresAt: T
image?: string
name?: string
redirectUri?: string

The redirect URI of the app

MMNEPVFCICPMFPCPTTAAATR