Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Complete App JWT Example #24

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
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 03_complete_app/backend/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import cors from 'cors';
import express from 'express';
import Session from 'express-session';
import { generateNonce, SiweMessage } from 'siwe';
import { generateNonce, SiweMessage, ErrorTypes } from 'siwe';

const app = express();
app.use(express.json());
Expand Down
2 changes: 1 addition & 1 deletion 04_ens_resolution/backend/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import cors from 'cors';
import express from 'express';
import Session from 'express-session';
import { generateNonce, SiweMessage } from 'siwe';
import { generateNonce, SiweMessage, ErrorTypes } from 'siwe';

const app = express();
app.use(express.json());
Expand Down
2 changes: 1 addition & 1 deletion 05_nft_resolution/backend/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import cors from 'cors';
import express from 'express';
import Session from 'express-session';
import { generateNonce, SiweMessage } from 'siwe';
import { generateNonce, SiweMessage, ErrorTypes } from 'siwe';

const app = express();
app.use(express.json());
Expand Down
3 changes: 3 additions & 0 deletions 06_complete_app_jwt/backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
node_modules
.env
2 changes: 2 additions & 0 deletions 06_complete_app_jwt/backend/env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TOKEN_SECRET=ABCMYSECRET123
TOKEN_EXPIRATION_SECONDS=86400
Loading