Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
FolderOrigin-RevId: /usr/src/app/bi-sdk-js
  • Loading branch information
bi-ci-bot committed Jun 11, 2024
1 parent 6f772de commit dd47d80
Show file tree
Hide file tree
Showing 13 changed files with 148 additions and 358 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Check out the [Developer Documentation](https://developer.beyondidentity.com) an
First, before calling the Embedded functions, make sure to initialize the SDK.

```typescript
import { Embedded } from '@beyondidentity/bi-sdk-js';
import { Embedded } from "@beyondidentity/bi-sdk-js";

const embedded = await Embedded.initialize();
```
Expand Down
158 changes: 43 additions & 115 deletions coresdk/dist/bi-core.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion coresdk/lib/kmc/kmc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export interface InitOutput {
readonly __wbindgen_malloc: (a: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
readonly __wbindgen_export_2: WebAssembly.Table;
readonly wasm_bindgen__convert__closures__invoke0_mut__hfcbc7f02d7b2e907: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures__invoke0_mut__hbfa9410e6fab5532: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6d330484440061e0: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures__invoke0_mut__hd481a34b90376d27: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3f3a53b263fcc69e: (a: number, b: number, c: number) => void;
Expand Down
158 changes: 43 additions & 115 deletions coresdk/lib/kmc/kmc.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion coresdk/lib/kmc/kmc_bg.wasm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function ring_core_0_17_7_bn_mul_mont(a: number, b: number, c: number, d:
export function __wbindgen_malloc(a: number): number;
export function __wbindgen_realloc(a: number, b: number, c: number): number;
export const __wbindgen_export_2: WebAssembly.Table;
export function wasm_bindgen__convert__closures__invoke0_mut__hfcbc7f02d7b2e907(a: number, b: number): void;
export function wasm_bindgen__convert__closures__invoke0_mut__hbfa9410e6fab5532(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6d330484440061e0(a: number, b: number): void;
export function wasm_bindgen__convert__closures__invoke0_mut__hd481a34b90376d27(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3f3a53b263fcc69e(a: number, b: number, c: number): void;
Expand Down
2 changes: 1 addition & 1 deletion coresdk/node_modules/kmc-ffi/kmc.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

158 changes: 43 additions & 115 deletions coresdk/node_modules/kmc-ffi/kmc.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion coresdk/node_modules/kmc-ffi/kmc_bg.wasm.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ cd example
cp .env.local.example .env.local
yarn dev
```

2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"Ismail Mustafa <[email protected]>"
],
"dependencies": {
"@beyondidentity/bi-sdk-js": "3.0.1",
"@beyondidentity/bi-sdk-js": "3.0.2",
"bootstrap": "^5.2.0",
"next": "latest",
"next-auth": "4.20.1",
Expand Down
12 changes: 9 additions & 3 deletions example/src/utils/BeyondIdentityEmbeddedSdk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ class BeyondIdentityEmbeddedSdk {

private initialized = async () => {
if (!this.embedded) {
this.embedded = await Embedded.initialize();
this.embedded = await Embedded.initialize({
logger: {
write: function (logType: string, message: string): void {
console.log(`[${logType}] ${message}`);
}
}
});
}
return this.embedded as Embedded;
};
Expand Down Expand Up @@ -42,7 +48,7 @@ class BeyondIdentityEmbeddedSdk {
) => {
let cxt = await this.getAuthenticationContext(url);
console.log(JSON.stringify(cxt));

return (await this.initialized()).authenticate(url, passkeyId);
};

Expand All @@ -55,7 +61,7 @@ class BeyondIdentityEmbeddedSdk {

redeemOtp = async (
url: string,
otp: string
otp: string
) => {
return (await this.initialized()).redeemOtp(url, otp);
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@beyondidentity/bi-sdk-js",
"version": "3.0.1",
"version": "3.0.2",
"description": "Passwordless authentication with our Authenticator embedded into you app",
"main": "dist/bi-embedded.js",
"types": "dist/src/index.d.ts",
Expand Down
5 changes: 3 additions & 2 deletions scripts/webauthn/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
WebAuthn Detector
-----------------

This script detects platform & browser and webauthn support.
This script detects platform & browser and webauthn support.

It is packaged with a simple web page so that we can easily check any device or browser.

## Usage
`yarn start` compiles & serves the page.

`yarn start` compiles & serves the page.

0 comments on commit dd47d80

Please sign in to comment.