Skip to content
Discussion options

You must be logged in to vote

(Perhaps what you are confused about is that the argument is a Key) - A Key can be private/public etc. It just simplifies the interaction with the API - also private and public keys are nkeys.KeyPair - the difference is that it public won't be able to sign only verify. See https://github.com/nats-io/jwt.js/blob/main/src/keys.ts

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@aricart
Comment options

@Roseidon
Comment options

@aricart
Comment options

Answer selected by Roseidon
@aricart
Comment options

@Roseidon
Comment options

@aricart
Comment options

@Roseidon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants