Skip to content

MOB-1679 Update to latest SDKs. Add latest APIs #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d9f874b
webauthn and webauthn with auth data implemented on JS and iOS
shachartransmit Apr 25, 2025
41dea60
added approvals methods to iOS and JS
shachartransmit Apr 29, 2025
6f93b12
upgraded react native and all dependencies. iOS works
shachartransmit May 6, 2025
35b70b3
MOB-1679 #comment fixed android versioning issues
shachartransmit May 21, 2025
d3a986e
MOB-1679 #comment fixed dependencies issues
shachartransmit May 26, 2025
80538cf
MOB-1679 #comment fixed android env issues, able to run app
shachartransmit May 26, 2025
d95fb6e
MOB-1679 #comment implemented actions in Android
shachartransmit May 26, 2025
71a9110
MOB-1679 #comment parsing approval data on iOS
shachartransmit May 27, 2025
1bf944c
MOB-1679 #comment parsing auth data object
shachartransmit May 27, 2025
5449b09
MOB-1679 #comment styled landing page
shachartransmit May 27, 2025
a4ca462
MOB-1679 #comment styled home page
shachartransmit May 27, 2025
65fe416
dismiss keyboard on tap
shachartransmit May 27, 2025
841ce85
MOB-1679 #comment added encryption type
shachartransmit May 28, 2025
70b6ccf
MOB-1679 #comment implemented android, ios and JS interface for auth …
shachartransmit Jun 3, 2025
bd60c31
MOB-1679 #comment built mock data
shachartransmit Jun 3, 2025
853182c
MOB-1679 #comment mapped android object
shachartransmit Jun 3, 2025
836a19c
MOB-1679 #comment implementing pin authenticator
shachartransmit Jun 4, 2025
ee8d376
MOB-1679 #comment implementing registerPinCode and commitPinRegistrat…
shachartransmit Jun 4, 2025
9c6ddb8
MOB-1679 #comment implementing pin registration dialog and logic
shachartransmit Jun 4, 2025
4543c3e
MOB-1679 #comment added loading spinner
shachartransmit Jun 4, 2025
ab12f80
MOB-1679 #comment implemented auth with pin
shachartransmit Jun 5, 2025
7190dc4
MOB-1679 #comment implemented auth with pin for Android
shachartransmit Jun 11, 2025
1e403d7
MOB-1679 #comment save pin registration state
shachartransmit Jun 11, 2025
d9f2c18
MOB-1679 #comment documented pin auth
shachartransmit Jun 11, 2025
60e14f1
MOB-1679 #comment updated documentation
shachartransmit Jun 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,68 @@ private randomString = (): string => {
}
```

### Approval with WebAuthn
```js
onApprovalWebAuthn = async (username: string, approvalData: { [key: string]: string }): Promise<void> => {
try {
const result = await TSAuthenticationSDKModule.approvalWebAuthn(username, approvalData, []);
console.log("Approval result: ", result);
} catch (error: any) {
this.setState({ errorMessage: `${error}` });
}
}
```

### Approval with WebAuthn with Authentication Data
```js
onApprovalWebAuthnWithData = async (rawAuthenticationData: TSWebAuthnAuthenticationData): Promise<void> => {
try {
const result = await TSAuthenticationSDKModule.approvalWebAuthnWithData(rawAuthenticationData, []);
console.log("Approval result: ", result);
} catch (error: any) {
this.setState({ errorMessage: `${error}` });
}
}
```

### Approval with WebAuthn with Native Biometrics

```js
onApprovalNativeBiometrics = async (username: string) => {
try {
const result = await TSAuthenticationSDKModule.approvalNativeBiometrics(username, challenge);
console.log("Approval result: ", result);
} catch (error: any) {
this.setState({ errorMessage: `${error}` });
}
}
```

### Register PIN Code
```js
onRegisterPINCode = async (username: string, pinCode: string): Promise<void> => {
try {
const result = await TSAuthenticationSDKModule.registerPinCode(username, pinCode);
// use result.contextIdentifier to commit the registration
await TSAuthenticationSDKModule.commitPinRegistration(result.contextIdentifier);
} catch (error) {
console.error(`Error registering PIN code: ${error}`);
}
}
```

### Authenticate with PIN Code
```js
authenticatePinCode = async (username: string, pinCode: string): Promise<void> => {
try {
const result = await TSAuthenticationSDKModule.authenticatePinCode(username, pinCode);
// use the result string to complete PIN authentication in your backend.
} catch (error) {
console.error(`Error authenticating with PIN code: ${error}`);
}
}
```

### Information about the device

#### Get Device Info
Expand Down
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.1.4 July 2024
## 0.1.5 July 2024
### Content
#### Enhancements
1. Upgraded native SDKs to iOS `1.1.3` and Android `1.0.19`.
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ dependencies {
// For < 0.71, this will be from the local maven repo
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
//noinspection GradleDynamicVersion
implementation("com.ts.sdk:authentication:1.0.19+")
implementation("com.ts.sdk:authentication:1.0.27")
implementation "com.facebook.react:react-native:+"
}

Loading
Loading