Skip to content

Commit

Permalink
fix: convert jwt fields to string
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Sep 3, 2024
1 parent 2f3b8f1 commit dc4655f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/topics/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ func NewTopicManager(

// ParseTopic checks if a topic is valid based on the given parameters.
func (t *Manager) ParseTopic(topic, iss, sub string, claims map[string]any) *Template {
fields := make(map[string]any)
fields := make(map[string]string)

for k, v := range claims {
fields[k] = v
fields[k] = fmt.Sprintf("%v", v)
}

fields["iss"] = iss
Expand Down

0 comments on commit dc4655f

Please sign in to comment.