MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / jwtSignatureFromClaims

Method jwtSignatureFromClaims

authenticator.go:149–152  ·  view source on GitHub ↗
(claims jwt.MapClaims)

Source from the content-addressed store, hash-verified

147}
148
149func (a authenticator) jwtSignatureFromClaims(claims jwt.MapClaims) (string, error) {
150 token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims)
151 return token.SignedString([]byte(a.secret))
152}
153
154func (a authenticator) jwtFeedClaims(resource resource, action action, feedID string) jwt.MapClaims {
155 return jwt.MapClaims{

Callers 5

jwtSignRequestMethod · 0.95
RealtimeTokenMethod · 0.80
CreateUserTokenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected