Comments (5)
solution: update tsconfig.json to
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"outDir": "dist",
"rootDir": ".",
"sourceMap": true,
"strict": false,
"skipLibCheck": true,
}
}
to be precise: I added "skipLibCheck": true,
from web3-token.
Thanks for the report. Let me check in the morning
from web3-token.
it works fine in vue3 project, but for azure functions it wont compile. i also tried with brand new fresh az and it still fails
from web3-token.
plain node js project works fine
const Web3Token = require("web3-token");
async function execute() {
const token = "XXXX";
const { address, body } = await Web3Token.verify(token);
console.log(address, body)
}
execute();
returns
0x3.... {
uri: 'https://localhost:8081/',
nonce: '36578978',
'web3-token-version': '2',
'chain-id': '1',
'issued-at': '2022-10-18T20:52:12.266Z',
'expiration-time': '2022-10-19T20:52:12.267Z',
statement: 'Sign message to authenticate'
}
from web3-token.
Anyway still cannot get why it happens and what do i need to update in my package build config 👀
from web3-token.
Related Issues (20)
- Why do you await verify? HOT 1
- Import UMD in browser
- Is there any way to make this smaller? HOT 3
- Future Solana Support?
- About JAVA Backend support
- Renew expired token without metamask - aka JWT refresh token HOT 2
- Invalid `domain` although it should be valid HOT 3
- Use `new URL()` instead of regex in isUrl()
- Tampered body doesn't brake the verification HOT 2
- Incorrect type for verify() output HOT 1
- Time always 1days HOT 1
- Property 'domain' of type 'string | undefined' is not assignable to 'string' index type 'string | string[] HOT 2
- rebase origin code
- rebase origin code
- Unable to retrieve nonce in the token verification HOT 4
- Feature request: Export decrypt function HOT 3
- MetaMask announced - it is compatible with EIP-4361 HOT 1
- Number can only safely store up to 53 bits HOT 1
- Add nonce check in verify function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web3-token.