sjudson / paseto.js

PASETO: Platform-Agnostic Security Tokens
MIT License
271 stars 16 forks source link

how to set notBefore, Expiration field #20

Closed x-077 closed 5 years ago

x-077 commented 5 years ago

Hello,

How to set the notBefore and Expiration field ?

Also is it possible to import a private rsa key ?

Thanks by advance.

sjudson commented 5 years ago

Not at present, that'll be part of the high level API that's still be worked on. At the moment this library just provides the cryptographic serialization, not any internal data structures.

x-077 commented 5 years ago

Hello @sjudson , do you know when it will be :) ?

sjudson commented 5 years ago

There's an open PR (https://github.com/sjudson/paseto.js/pull/17) for it that I hope to look at early next month.