Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/LIT-Protocol/js-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansonhkg committed Aug 21, 2023
2 parents 11d5e14 + 5b61224 commit 127b12f
Show file tree
Hide file tree
Showing 20 changed files with 10,125 additions and 3,113 deletions.
3 changes: 3 additions & 0 deletions apps/demo-lit-connect-modal-next/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
35 changes: 35 additions & 0 deletions apps/demo-lit-connect-modal-next/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
19 changes: 19 additions & 0 deletions apps/demo-lit-connect-modal-next/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# `checkAndSignAuthMessage` Example ✍️

This is an example web app that shows how you can easily obtain an `AuthSig` using the `checkAndSignAuthMessage` function.

When the function is called, it prompts a wallet selection pop-up in the user's browser. Once the user's wallet is connected, the user is asked to sign a message, thereby confirming the ownership of their crypto address. The `AuthSig`` is then generated, which includes the signature of the user's signed message.

## 💻 Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
7 changes: 7 additions & 0 deletions apps/demo-lit-connect-modal-next/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
}
}
4 changes: 4 additions & 0 deletions apps/demo-lit-connect-modal-next/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}

module.exports = nextConfig
Loading

1 comment on commit 127b12f

@vercel
Copy link

@vercel vercel bot commented on 127b12f Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.