You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| SuccessHandler |`fiber.Handler`| SuccessHandler defines a function which is executed for a valid key. |`nil`|
220
220
| ErrorHandler |`fiber.ErrorHandler`| ErrorHandler defines a function which is executed for an invalid key. |`401 Invalid or expired key`|
221
221
| KeyLookup |`string`| KeyLookup is a string in the form of "`<source>:<name>`" that is used to extract key from the request. | "header:Authorization" |
222
-
|AdditionalKeyLookups|`[]string`| If additional fallback sources of keys are required, they can be specified here in order of precedence |[]string{} (empty) |
222
+
|FallbackKeyLookups|`[]string`| If additional fallback sources of keys are required, they can be specified here in order of precedence |[]string{} (empty) |
223
223
| AuthScheme |`string`| AuthScheme to be used in the Authorization header. | "Bearer" |
224
224
| Validator |`func(*fiber.Ctx, string) (bool, error)`| Validator is a function to validate the key. | A function for key validation |
225
225
| ContextKey |`interface{}`| Context key to store the bearer token from the token into context. | "token" |
@@ -238,6 +238,7 @@ var ConfigDefault = Config{
238
238
return c.Status(fiber.StatusUnauthorized).SendString("Invalid or expired API Key")
0 commit comments