(pub string)
| 356 | } |
| 357 | |
| 358 | func (k *Kite) selfVerify(pub string) error { |
| 359 | k.configMu.RLock() |
| 360 | ourKey := k.Config.KontrolKey |
| 361 | k.configMu.RUnlock() |
| 362 | |
| 363 | if pub != ourKey { |
| 364 | return ErrKeyNotTrusted |
| 365 | } |
| 366 | |
| 367 | return nil |
| 368 | } |
| 369 | |
| 370 | func (k *Kite) verify(token *jwt.Token) (interface{}, error) { |
| 371 | k.verifyOnce.Do(k.verifyInit) |
nothing calls this directly
no outgoing calls
no test coverage detected