Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5347a10
Update to latest protocol. Add SBT client dependency.
Mar 2, 2023
8955b8a
Support generating profiles as a VC. Refactor.
Mar 2, 2023
8b38682
Add (untested) SBT minting
Mar 2, 2023
bc6f995
Remove console output
Mar 3, 2023
b2ad728
Start of SBT tests
Mar 3, 2023
3c8bd34
Update to superfaceai twitter lib
Mar 3, 2023
94784a7
Merge branch 'feature/20-switch-twitter-passport-library' into releas…
Mar 3, 2023
e9c37c0
Add missing packages
Mar 3, 2023
68c83fa
Fix incorrect credential schema URL
Mar 4, 2023
c398de6
Fix incorrect passing of Context object
Mar 4, 2023
e400ed8
Basic VC creation tests working
Mar 4, 2023
d762baa
Fix provider image. Generate VC that matches SBT credential schema. A…
Mar 5, 2023
8126808
Update to latest protocol
Mar 13, 2023
f1a0e4c
Support per schema sync request config. Support sync done to delete u…
Mar 13, 2023
c299047
Update to latest verida protocol
Apr 5, 2023
3bb7e5b
Remove SBTs from the server
Apr 5, 2023
10f6f53
Add discord auth support
Apr 15, 2023
2f40cba
Add placeholder discord icon
Apr 16, 2023
2db3acf
Update build script to copy over assets
Apr 16, 2023
0fd95f2
Dont mint SBTs from the server
Apr 16, 2023
011e243
Serve static assets folder
Apr 16, 2023
2c7824d
Cleanup discord provider
Apr 16, 2023
a4d20f2
Add providers endpoint for info on all providers
Apr 16, 2023
e131e75
Add missing provider icons
Apr 17, 2023
353c7a1
Update icons
Apr 26, 2023
c280317
Fix image handling
Apr 28, 2023
5c78d98
Update dependencies
Apr 28, 2023
f7b3cca
Merge branch 'feature/protocol-v2.3.4' into release/march-2023-sbts
Apr 28, 2023
6e73d1b
Fix client creation
Apr 28, 2023
a1e1fb0
Add IPFS entries to server config
May 23, 2023
4730f56
Improve error handling for invalid token. Improve display of complete…
Dec 1, 2023
bf53b21
Update to latest verida dependencies
Jan 16, 2024
9588f26
Improve layout of HTML pages
Jan 27, 2024
21ffb36
Fix to handle sync token expiration properly
Jan 27, 2024
da3da05
Fix Discord implementation
Jan 27, 2024
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
Binary file added assets/discord/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/facebook/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/github/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/linkedin/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/telegram/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/twitter/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 17 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/server.js",
"scripts": {
"dev": "yarn build; nodemon src/server.js",
"build": "rm -rf dist && tsc",
"build": "rm -rf dist && tsc && rm -rf dist/assets && cp -R assets dist/",
"prestart": "yarn build",
"start": "node dist/server.js",
"tests": "ts-mocha './tests/**/*.ts'",
Expand All @@ -24,18 +24,29 @@
"bugs": {
"url": "https://github.com/verida/server-template/issues"
},
"engines": {
"node": ">=16.06"
},
"homepage": "https://github.com/verida/server-template#readme",
"dependencies": {
"@verida/account-node": "^2.0.0",
"@verida/client-ts": "^2.0.1",
"@verida/did-client": "^2.0.0",
"@verida/encryption-utils": "^2.0.0",
"@verida/web3": "^2.0.0",
"@oauth-everything/passport-discord": "^1.0.2",
"@sapphire/snowflake": "^3.4.2",
"@superfaceai/passport-twitter-oauth2": "^1.2.3",
"@verida/account-node": "^3.0.1",
"@verida/client-ts": "^3.0.2",
"@verida/did-client": "^3.0.1",
"@verida/encryption-utils": "^3.0.0",
"@verida/helpers": "^3.0.1",
"@verida/types": "^3.0.0",
"@verida/vda-sbt-client": "^3.0.2",
"@verida/verifiable-credentials": "^3.0.2",
"@verida/web3": "^3.0.1",
"aws-serverless-express": "^3.4.0",
"axios": "^1.2.3",
"body-parser": "^1.19.0",
"cors": "^2.8.5",
"dayjs": "^1.11.1",
"discord.js": "^14.9.0",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-basic-auth": "git+https://github.com/Mozzler/express-basic-auth.git",
Expand All @@ -48,15 +59,13 @@
"nano": "^9.0.5",
"passport": "^0.5.2",
"passport-facebook": "^3.0.0",
"passport-twitter-oauth2.0": "^1.1.0",
"ts-mocha": "^9.0.2",
"twitter-api-v2": "^1.14.0"
},
"devDependencies": {
"@types/express": "^4.17.13",
"@types/express-session": "1.17.0",
"@types/mocha": "^9.1.0",
"@types/pouchdb-core": "^7.0.10",
"claudia": "^5.14.1",
"nodemon": "^2.0.14",
"typescript": "4.6.3"
Expand Down
16 changes: 1 addition & 15 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,2 @@
import { EnvironmentType } from '@verida/client-ts'
import serverconfig from './serverconfig.json'

export default serverconfig

export function strToEnvType(s: string) {
if (s == EnvironmentType.LOCAL) {
return EnvironmentType.LOCAL;
} else if (s == EnvironmentType.TESTNET) {
return EnvironmentType.TESTNET;
} else if (s == EnvironmentType.MAINNET) {
return EnvironmentType.MAINNET;
} else {
throw new Error("Invalid EnvironmentType value");
}
}
export default serverconfig
Loading