Skip to content

Commit 14fb272

Browse files
Fix app attestation provider values to match backend enum
The backend validates provider against uppercase enum values (APP_ATTEST, PLAY_INTEGRITY). The RN SDK was sending "apple" and "playIntegrity" which fail validation. Also bumps version to 2.7.0-alpha.2.
1 parent 20c1cfa commit 14fb272

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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": "react-native-authsignal",
3-
"version": "2.7.0-alpha.1",
3+
"version": "2.7.0-alpha.2",
44
"description": "The official Authsignal React Native library.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export interface VerifyResponse {
4646
}
4747

4848
export enum AppAttestationProvider {
49-
apple = 'apple',
50-
playIntegrity = 'playIntegrity',
49+
apple = 'APP_ATTEST',
50+
playIntegrity = 'PLAY_INTEGRITY',
5151
}
5252

5353
export interface AppAttestation {

0 commit comments

Comments
 (0)