JoinToken joins the token as " . . ".
(tokenType TokenType, id, key string)
| 105 | |
| 106 | // JoinToken joins the token as "<prefix>.<id>.<key>". |
| 107 | func 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. |
| 112 | func GenerateID(_ context.Context) (string, error) { |
no outgoing calls