MCPcopy Create free account
hub / github.com/koding/kite / Parse

Function Parse

kitekey/kitekey.go:84–91  ·  view source on GitHub ↗

Parse the kite.key file and return it as JWT token.

()

Source from the content-addressed store, hash-verified

82
83// Parse the kite.key file and return it as JWT token.
84func Parse() (*jwt.Token, error) {
85 kiteKey, err := Read()
86 if err != nil {
87 return nil, err
88 }
89
90 return jwt.ParseWithClaims(kiteKey, &KiteClaims{}, GetKontrolKey)
91}
92
93// ParseFile reads the given kite key file and parses it as a JWT token.
94func ParseFile(file string) (*jwt.Token, error) {

Callers

nothing calls this directly

Calls 1

ReadFunction · 0.85

Tested by

no test coverage detected