Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion packages/ai/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@react-native-firebase/app/lib/internal": ["../app/dist/typescript/commonjs/lib/internal"],
"@react-native-firebase/app": ["../app/dist/typescript/commonjs/lib"],
"@react-native-firebase/auth": ["../auth/lib"],
"@react-native-firebase/app-check": ["../app-check/lib"]
"@react-native-firebase/app-check": ["../app-check/dist/typescript/commonjs/lib"]
}
},
"include": ["lib/**/*"],
Expand Down
5 changes: 2 additions & 3 deletions packages/app-check/__tests__/appcheck.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
ReactNativeFirebaseAppCheckProviderAndroidOptions,
ReactNativeFirebaseAppCheckProviderAppleOptions,
ReactNativeFirebaseAppCheckProviderWebOptions,
ReactNativeFirebaseAppCheckProvider,
} from '../lib';

describe('appCheck()', function () {
Expand Down Expand Up @@ -84,8 +83,8 @@ describe('appCheck()', function () {
});

it('`ReactNativeAppCheckProvider objects are properly exposed to end user', function () {
expect(ReactNativeFirebaseAppCheckProvider).toBeDefined();
const provider = new ReactNativeFirebaseAppCheckProvider();
expect(firebase.appCheck().newReactNativeFirebaseAppCheckProvider).toBeDefined();
const provider = firebase.appCheck().newReactNativeFirebaseAppCheckProvider();
expect(provider.configure).toBeDefined();
const options = { debugToken: 'foo' } as ReactNativeFirebaseAppCheckProviderOptions;
const appleOptions = {
Expand Down
9 changes: 0 additions & 9 deletions packages/app-check/lib/ReactNativeFirebaseAppCheckProvider.js

This file was deleted.

21 changes: 21 additions & 0 deletions packages/app-check/lib/ReactNativeFirebaseAppCheckProvider.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type {
AppCheckProvider,
AppCheckToken,
ReactNativeFirebaseAppCheckProviderOptionsMap as ProviderOptions,
} from './types/appcheck';

export default class ReactNativeFirebaseAppCheckProvider implements AppCheckProvider {
providerOptions?: ProviderOptions;

constructor() {}

configure(options: ProviderOptions): void {
this.providerOptions = options;
}

async getToken(): Promise<AppCheckToken> {
// This is a placeholder - the actual implementation is handled by the native modules
// This method exists to satisfy the AppCheckProvider interface
throw new Error('getToken() must be called after configure() and is handled by native modules');
}
}
Loading
Loading