MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / JoinToken

Function JoinToken

pkg/auth/auth.go:107–109  ·  view source on GitHub ↗

JoinToken joins the token as " . . ".

(tokenType TokenType, id, key string)

Source from the content-addressed store, hash-verified

105
106// JoinToken joins the token as "<prefix>.<id>.<key>".
107func JoinToken(tokenType TokenType, id, key string) string {
108 return fmt.Sprintf("%s.%s.%s", string(tokenType), id, key)
109}
110
111// GenerateID generates the "id" part of the token.
112func GenerateID(_ context.Context) (string, error) {

Callers 5

TestAuthFunction · 0.92
TestCSRFFunction · 0.92
CookieAuthFunction · 0.92
TestCookieAuthFunction · 0.92
GenerateMethod · 0.85

Calls

no outgoing calls

Tested by 3

TestAuthFunction · 0.74
TestCSRFFunction · 0.74
TestCookieAuthFunction · 0.74