From 961e8deebfa7e146ad2226766a4340faab263799 Mon Sep 17 00:00:00 2001 From: Jason McNeil Date: Sun, 16 Jun 2024 18:55:32 -0300 Subject: [PATCH] docs: fix md table alignment --- docs/middleware/keyauth.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/middleware/keyauth.md b/docs/middleware/keyauth.md index 6e422a1914..ae854380d7 100644 --- a/docs/middleware/keyauth.md +++ b/docs/middleware/keyauth.md @@ -216,13 +216,13 @@ curl --header "Authorization: Bearer my-super-secret-key" http://localhost:3000 | Property | Type | Description | Default | |:----------------|:-----------------------------------------|:-------------------------------------------------------------------------------------------------------|:------------------------------| -| Next | `func(fiber.Ctx) bool` | Next defines a function to skip this middleware when returned true. | `nil` | +| Next | `func(fiber.Ctx) bool` | Next defines a function to skip this middleware when returned true. | `nil` | | SuccessHandler | `fiber.Handler` | SuccessHandler defines a function which is executed for a valid key. | `nil` | | ErrorHandler | `fiber.ErrorHandler` | ErrorHandler defines a function which is executed for an invalid key. | `401 Invalid or expired key` | | KeyLookup | `string` | KeyLookup is a string in the form of "`:`" that is used to extract the key from the request. | "header:Authorization" | | CustomKeyLookup | `KeyauthKeyLookupFunc` aka `func(c fiber.Ctx) (string, error)` | If more complex logic is required to extract the key from the request, an arbitrary function to extract it can be specified here. Utility helper functions are described below. | `nil` | | AuthScheme | `string` | AuthScheme to be used in the Authorization header. | "Bearer" | -| Validator | `func(fiber.Ctx, string) (bool, error)` | Validator is a function to validate the key. | A function for key validation | +| Validator | `func(fiber.Ctx, string) (bool, error)` | Validator is a function to validate the key. | A function for key validation | ## Default Config