Skip to content

Commit

Permalink
Transition to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
r-n-o committed Feb 5, 2024
1 parent 35560d6 commit aa962c1
Show file tree
Hide file tree
Showing 5 changed files with 368 additions and 17 deletions.
6 changes: 3 additions & 3 deletions App.js → App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default function App() {
return (
<View style={styles.container}>
<Text>React Native Passkey App</Text>
<Button title='Create Passkey' onPress={onPasskeyCreate}>Create Passkey</Button>
<Button title='Sign with Passkey' onPress={onPasskeySignature}>Sign with Passkey</Button>
<Button title='Create Passkey' onPress={onPasskeyCreate}></Button>
<Button title='Sign with Passkey' onPress={onPasskeySignature}></Button>
<StatusBar style="auto" />
</View>
);
Expand Down Expand Up @@ -74,7 +74,7 @@ async function onPasskeySignature() {
}
}

async function createSubOrganization(authenticatorParams) {
async function createSubOrganization(authenticatorParams: Awaited<ReturnType<typeof createPasskey>>) {
const stamper = new ApiKeyStamper({
apiPublicKey: TURNKEY_API_PUBLIC_KEY,
apiPrivateKey: TURNKEY_API_PRIVATE_KEY,
Expand Down
5 changes: 5 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '@env' {
export const TURNKEY_ORGANIZATION_ID: string;
export const TURNKEY_API_PUBLIC_KEY: string;
export const TURNKEY_API_PRIVATE_KEY: string;
}
Loading

0 comments on commit aa962c1

Please sign in to comment.