Skip to content

Commit 382dc43

Browse files
authored
Support Legacy Transfer Flow (#145)
1 parent 3d47409 commit 382dc43

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "token-io",
3-
"version": "1.5.20",
3+
"version": "1.5.21",
44
"description": "",
55
"main": "dist/token-io.min.js",
66
"scripts": {

src/main/Member.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,12 @@ export default class Member {
872872
description,
873873
destinations,
874874
refId);
875+
876+
if (res.data.transfer.status === 'PENDING_EXTERNAL_AUTHORIZATION') {
877+
const error = new Error('PENDING_EXTERNAL_AUTHORIZATION');
878+
error.authorizationDetails = res.data.authorizationDetails;
879+
throw error;
880+
}
875881
return res.data.transfer;
876882
});
877883
}

0 commit comments

Comments
 (0)