mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 14:43:52 +03:00
Fix typo in source (#20723)
Algorightm -> Algorithm Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
2660b0397a
commit
820031e556
1 changed files with 2 additions and 2 deletions
|
@ -31,11 +31,11 @@ import (
|
||||||
|
|
||||||
// ErrInvalidAlgorithmType represents an invalid algorithm error.
|
// ErrInvalidAlgorithmType represents an invalid algorithm error.
|
||||||
type ErrInvalidAlgorithmType struct {
|
type ErrInvalidAlgorithmType struct {
|
||||||
Algorightm string
|
Algorithm string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (err ErrInvalidAlgorithmType) Error() 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
|
// JWTSigningKey represents a algorithm/key pair to sign JWTs
|
||||||
|
|
Loading…
Reference in a new issue