Docs

AuthOptions

type AuthOptions = {
adminAccount?: Account;
client?: ThirdwebClient;
domain: string;
jwt?: {
expirationTimeSeconds?: number;
jwtId?: {
generate: () => string | Promise<string>;
validate: (jwtId: string) => boolean | Promise<boolean>;
};
};
login?: {
nonce?: {
generate: () => string | Promise<string>;
validate: (nonce: string) => boolean | Promise<boolean>;
};
payloadExpirationTimeSeconds?: number;
resources?: Array<string>;
statement?: string;
uri?: string;
version?: string;
};
};