Improve challenge handling

This commit is contained in:
Fedor Indutny 2022-09-14 17:31:37 -07:00 committed by GitHub
parent e0852abcdc
commit e3f418105b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 92 additions and 52 deletions

View file

@ -144,10 +144,10 @@ export class SendMessageNetworkError extends ReplayableError {
}
}
export type SendMessageChallengeData = {
readonly token?: string;
readonly options?: ReadonlyArray<string>;
};
export type SendMessageChallengeData = Readonly<{
token?: string;
options?: ReadonlyArray<string>;
}>;
export class SendMessageChallengeError extends ReplayableError {
public identifier: string;