Skip to content

Commit

Permalink
Move lit action code. Add to README
Browse files Browse the repository at this point in the history
  • Loading branch information
spacesailor24 committed Jan 14, 2025
1 parent 4e068f0 commit 60e9a07
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions custom-auth-google/browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ Next click the `Get PKP Session Sigs` button to get PKP session signatures using
## Specific Files to Reference

- [App.tsx](./src/App.tsx): Contains the frontend code and the code for authenticating the Google account
- [lit/lit-action.ts](./src/lit/lit-action.ts): Contains the Lit Action code for authenticating a Google OAuth JWT to authorize signing using the PKP
- [lit/mint-pkp.ts](./src/lit/mint-pkp.ts): Contains the code for minting a PKP and attaching the authenticated Google account as a permitted auth method
- [lit/get-pkp-session-sigs.ts](./src/lit/get-pkp-session-sigs.ts): Contains the code for getting PKP session signatures using the authenticated Google account
2 changes: 1 addition & 1 deletion custom-auth-google/browser/src/lit/get-pkp-session-sigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LitNodeClient } from "@lit-protocol/lit-node-client";
import { LitActionResource, LitPKPResource } from "@lit-protocol/auth-helpers";
import { LIT_ABILITY } from "@lit-protocol/constants";

import { litActionCode } from "../litAction";
import { litActionCode } from "./lit-action";
import { getLitContracts } from "./get-lit-contracts";
import { connectEthereumAccount } from "./connect-ethereum-account";
import { getLitNodeClient } from "./get-lit-node-client";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion custom-auth-google/browser/src/lit/mint-pkp.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import bs58 from "bs58";
import IpfsHash from "typestub-ipfs-only-hash";

import { litActionCode } from "../litAction";
import { litActionCode } from "./lit-action";
import { connectEthereumAccount } from "./connect-ethereum-account";
import { getGoogleAuthMethodMetadata } from "./get-auth-method-metadata";
import { getLitContracts } from "./get-lit-contracts";
Expand Down

0 comments on commit 60e9a07

Please sign in to comment.