{"modulePath":"github.com/wavetermdev/waveterm","version":"v0.14.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package wavejwt\n\n## Constants\n\n```go\nconst (\n\tIssuerWaveTerm = \"waveterm\"\n)\n```\n\n## Functions\n\n```go\nfunc GetPublicKey() []byte\n```\n\n```go\nfunc GetPublicKeyBase64() string\n```\n\n```go\nfunc SetPrivateKey(keyData []byte) error\n```\n\n```go\nfunc SetPublicKey(keyData []byte) error\n```\n\n```go\nfunc Sign(claims *WaveJwtClaims) (string, error)\n```\n\n## Types\n\n```go\ntype KeyPair struct {\n\tPublicKey  []byte\n\tPrivateKey []byte\n}\n```\n\n```go\nfunc GenerateKeyPair() (*KeyPair, error)\n```\n\n```go\ntype WaveJwtClaims struct {\n\tjwt.RegisteredClaims\n\tMainServer bool   `json:\"mainserver,omitempty\"`\n\tSock       string `json:\"sock,omitempty\"`\n\tRouteId    string `json:\"routeid,omitempty\"`\n\tProcRoute  bool   `json:\"procroute,omitempty\"`\n\tBlockId    string `json:\"blockid,omitempty\"`\n\tJobId      string `json:\"jobid,omitempty\"`\n\tConn       string `json:\"conn,omitempty\"`\n\tRouter     bool   `json:\"router,omitempty\"`\n}\n```\n\n```go\nfunc ValidateAndExtract(tokenStr string) (*WaveJwtClaims, error)\n```\n\n","path":"github.com/wavetermdev/waveterm/pkg/wavejwt","name":"wavejwt","synopsis":"","isRedistributable":true}
