Skip to content

Commit 51f4383

Browse files
[AUT-3290] Rename appAttestation to deviceIntegrity (#89)
* Bump Android SDK to 3.4.1-alpha.4 and version to 2.8.0-alpha.4 Picks up fix for getJwtClaim not checking nested 'other' object in JWT payload, which caused Play Integrity attestation to fail. * Rename appAttestation to deviceIntegrity in public API * Bump version to 2.8.0 * Update native SDK dependencies to stable versions (iOS 2.4.0, Android 3.5.0)
1 parent 6b82f1f commit 51f4383

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ dependencies {
6161

6262
implementation "androidx.browser:browser:1.2.0"
6363

64-
implementation("com.authsignal:authsignal-android:3.4.1-alpha.4")
64+
implementation("com.authsignal:authsignal-android:3.5.0")
6565
}

android/src/main/java/com/authsignal/react/AuthsignalInAppModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class AuthsignalInAppModule(private val reactContext: ReactApplicationContext) :
5555
_requireUserAuthentication: Boolean,
5656
_keychainAccess: String?,
5757
username: String?,
58-
appAttestation: Boolean,
58+
deviceIntegrity: Boolean,
5959
promise: Promise
6060
) {
6161
launch(promise) {
@@ -66,7 +66,7 @@ class AuthsignalInAppModule(private val reactContext: ReactApplicationContext) :
6666
timeout = 0,
6767
authorizationType = 0,
6868
username = username,
69-
appAttestation = appAttestation,
69+
deviceIntegrity = deviceIntegrity,
7070
)
7171

7272
if (response.error != null) {

ios/AuthsignalInAppModule.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ @interface RCT_EXTERN_MODULE(AuthsignalInAppModule, NSObject)
1616
withRequireUserAuthentication:(BOOL)requireUserAuthentication
1717
withKeychainAccess:(NSString)keychainAccess
1818
withUsername:(NSString)username
19-
withAppAttestation:(BOOL)appAttestation
19+
withDeviceIntegrity:(BOOL)deviceIntegrity
2020
resolve:(RCTPromiseResolveBlock)resolve
2121
reject:(RCTPromiseRejectBlock)reject)
2222

ios/AuthsignalInAppModule.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class AuthsignalInAppModule: NSObject {
5959
withRequireUserAuthentication requireUserAuthentication: Bool,
6060
withKeychainAccess keychainAccess: NSString?,
6161
withUsername username: NSString?,
62-
withAppAttestation appAttestation: Bool,
62+
withDeviceIntegrity deviceIntegrity: Bool,
6363
resolve: @escaping RCTPromiseResolveBlock,
6464
reject: @escaping RCTPromiseRejectBlock
6565
) -> Void {
@@ -79,7 +79,7 @@ class AuthsignalInAppModule: NSObject {
7979
keychainAccess: keychainAccess,
8080
userPresenceRequired: userPresenceRequired,
8181
username: usernameStr,
82-
appAttestation: appAttestation
82+
deviceIntegrity: deviceIntegrity
8383
)
8484

8585
if let error = response.error {

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.8.0-alpha.4",
3+
"version": "2.8.0",
44
"description": "The official Authsignal React Native library.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

react-native-authsignal.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
1818
s.private_header_files = "ios/**/*.h"
1919

2020
s.dependency "React-Core"
21-
s.dependency 'Authsignal', '2.4.0-alpha.3'
21+
s.dependency 'Authsignal', '2.4.0'
2222

2323
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
2424
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.

src/NativeAuthsignalInAppModule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface Spec extends TurboModule {
88
withRequireUserAuthentication: boolean,
99
withKeychainAccess: string | null,
1010
withUsername: string | null,
11-
withAppAttestation: boolean
11+
withDeviceIntegrity: boolean
1212
): Promise<Object | null>;
1313
removeCredential(username: string | null): Promise<boolean>;
1414
verify(

src/inapp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class AuthsignalInApp {
6767
requireUserAuthentication = false,
6868
keychainAccess,
6969
username,
70-
appAttestation,
70+
deviceIntegrity,
7171
}: InAppAddCredentialInput = {}): Promise<AuthsignalResponse<AppCredential>> {
7272
await this.ensureModuleIsInitialized();
7373

@@ -77,7 +77,7 @@ export class AuthsignalInApp {
7777
requireUserAuthentication,
7878
keychainAccess ?? null,
7979
username ?? null,
80-
appAttestation ?? false
80+
deviceIntegrity ?? false
8181
)) as AppCredential;
8282

8383
return { data };

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface AddCredentialInput {
4949
token?: string;
5050
requireUserAuthentication?: boolean;
5151
keychainAccess?: KeychainAccess;
52-
appAttestation?: boolean;
52+
deviceIntegrity?: boolean;
5353
}
5454

5555
export interface AppChallenge {

0 commit comments

Comments
 (0)