Skip to content

Add input validation and security checks in CreateToken method #25

@coderabbitai

Description

@coderabbitai

The method CreateToken in internal/auth/jwt_hs256.go should validate the input data map and ensure sensitive data isn't accidentally included in the token.

See PR #8 and this comment for more details.

Requested by @itsLeonB.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions