File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ export function hasChainSubmissions(result: SiwfResponse): boolean {
24
24
* Validate a possible SIWF Response
25
25
*
26
26
* @param {unknown } response - A possible SIWF Response.
27
- * @param {string } loginMsgUri - The login message signed by the user should match this domain . (Default: localhost)
27
+ * @param {string | string[] } loginMsgUri - The login message signed by the user should match one of the supplied domains . (Default: localhost)
28
28
*
29
29
* @returns {Promise<SiwfResponse> } The validated response
30
30
*/
31
- export async function validateSiwfResponse ( response : unknown , loginMsgUri : string ) : Promise < SiwfResponse > {
31
+ export async function validateSiwfResponse ( response : unknown , loginMsgUri : string | string [ ] ) : Promise < SiwfResponse > {
32
32
await cryptoWaitReady ( ) ;
33
33
34
34
let body = response ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { validateAddress } from '@polkadot/util-crypto/address/validate';
2
2
3
3
export interface SiwfOptions {
4
4
endpoint : string ;
5
- loginMsgUri ?: string ;
5
+ loginMsgUri ?: string | string [ ] ;
6
6
}
7
7
8
8
export interface SiwfPublicKey {
You can’t perform that action at this time.
0 commit comments