mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08: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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user