MCPcopy Index your code
hub / github.com/coder/coder / validJWT

Function validJWT

enterprise/cli/licenses.go:133–138  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

131}
132
133func validJWT(s string) error {
134 if jwtRegexp.MatchString(s) {
135 return nil
136 }
137 return xerrors.New("Invalid license")
138}
139
140func (r *RootCmd) licensesList() *serpent.Command {
141 formatter := cliutil.NewLicenseFormatter()

Callers 1

licenseAddMethod · 0.85

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected