Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
paulclindo committed Oct 17, 2023
1 parent aad89d5 commit 777cb00
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 14 additions & 1 deletion apps/shinkai-app/src/pages/AdminCommands.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,20 @@ const AdminCommands: React.FC = () => {
await createRegistrationCode({
permissionsType,
identityType,
setupPayload: auth,
setupPayload: {
my_device_encryption_sk: auth.my_device_encryption_sk,
my_device_identity_sk: auth.my_device_identity_sk,
profile_encryption_sk: auth.profile_encryption_sk,
profile_identity_sk: auth.profile_identity_sk,
node_encryption_pk: auth.node_encryption_pk,
registration_code: auth.registration_code ?? '',
identity_type: auth.identity_type ?? '',
permission_type: auth.permission_type,
registration_name: auth.registration_name,
profile: auth.profile,
shinkai_identity: auth.shinkai_identity,
node_address: auth.node_address,
},
profileName,
});

Expand Down
2 changes: 2 additions & 0 deletions apps/shinkai-app/src/store/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export type SetupData = {
my_device_encryption_pk: string;
my_device_identity_sk: string;
my_device_identity_pk: string;
identity_type?: string;
registration_code?: string;
};

type AuthStore = {
Expand Down

0 comments on commit 777cb00

Please sign in to comment.