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

Function NewKiteKeyUsername

testutil/testutil.go:26–28  ·  view source on GitHub ↗

NewKiteKeyUsername is like NewKiteKey() but it uses the given username instead of using the "testuser" name

(username string)

Source from the content-addressed store, hash-verified

24// NewKiteKeyUsername is like NewKiteKey() but it uses the given username
25// instead of using the "testuser" name
26func NewKiteKeyUsername(username string) *jwt.Token {
27 return NewToken(username, testkeys.Private, testkeys.Public)
28}
29
30func NewKiteKeyWithKeyPair(private, public string) *jwt.Token {
31 return NewToken("", private, public)

Callers

nothing calls this directly

Calls 1

NewTokenFunction · 0.85

Tested by

no test coverage detected