metalives-sdk
v0.1.8
Published
Useful package to develop your live page using metalives infrastructure
Downloads
12
Readme
Metalives SDK
How to build:
npm run build
How to use in another application
npm link /path/to/metalives-sdk execute the code
How to create a token to comunicate with API
Header: { "alg": "HS256", "typ": "JWT" }
Payload: { "iss": issuer, "sub": org's uuid, presents on database, "iat": 1516239022 // optional, issued at }
HMACSHA256( base64UrlEncode(header) + "." + base64UrlEncode(payload), // base64 encoded key )