Skip to content

Commit c7c64e7

Browse files
authored
Merge pull request #323 from docknetwork/fix/truvera-cross-origin-redirects
workaround for truvera cross-origin redirects
2 parents 2dd9e76 + 6a8a7f2 commit c7c64e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-native/lib/default-biometrics-plugin.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ const issueBiometricMatchCredential = async enrollmentCredential => {
185185
let created = getIssuanceDate();
186186

187187
if (schema?.id) {
188-
const fetchSchemaResponse = await axios.get(schema?.id).catch((err) => {
188+
// React native iOS can't handle cross-origin redirects
189+
const fetchSchemaResponse = await axios.get(schema?.id?.replace('schema.dock.io', 'schema.truvera.io')).catch((err) => {
189190
console.error(err);
190191
console.error('Failed to fetch schema data');
191192
return null

0 commit comments

Comments
 (0)