diff options
author | luzpaz <luzpaz@users.noreply.github.com> | 2022-08-08 21:53:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 09:53:40 +0800 |
commit | 820031e556af9548aa07e4de2669ca52bd7f63cb (patch) | |
tree | 81438ae59dbc1e14040e30c964aabc03e2f5f19c /services/auth | |
parent | 2660b0397aaea041c2d1f4d247d65e92a377c379 (diff) | |
download | gitea-820031e556af9548aa07e4de2669ca52bd7f63cb.tar.gz gitea-820031e556af9548aa07e4de2669ca52bd7f63cb.zip |
Fix typo in source (#20723)
Algorightm -> Algorithm
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'services/auth')
-rw-r--r-- | services/auth/source/oauth2/jwtsigningkey.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/auth/source/oauth2/jwtsigningkey.go b/services/auth/source/oauth2/jwtsigningkey.go index 24f2c41119..d6b3c05a4f 100644 --- a/services/auth/source/oauth2/jwtsigningkey.go +++ b/services/auth/source/oauth2/jwtsigningkey.go @@ -31,11 +31,11 @@ import ( // ErrInvalidAlgorithmType represents an invalid algorithm error. type ErrInvalidAlgorithmType struct { - Algorightm string + Algorithm string } func (err ErrInvalidAlgorithmType) Error() string { - return fmt.Sprintf("JWT signing algorithm is not supported: %s", err.Algorightm) + return fmt.Sprintf("JWT signing algorithm is not supported: %s", err.Algorithm) } // JWTSigningKey represents a algorithm/key pair to sign JWTs |