From 3469773b04ca88a9efebba5f30e346d49f0412ef Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 11 Jul 2023 11:16:23 +0200 Subject: [PATCH] chore: fix typo (#3370) --- internal/client-go/api_frontend.go | 4 ++-- internal/httpclient/api_frontend.go | 4 ++-- session/handler.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/client-go/api_frontend.go b/internal/client-go/api_frontend.go index e75bab098fa..7afb4eeda28 100644 --- a/internal/client-go/api_frontend.go +++ b/internal/client-go/api_frontend.go @@ -688,7 +688,7 @@ type FrontendApi interface { if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. - If none of these headers are set or the cooke or token are invalid, the endpoint returns a HTTP 401 status code. + If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: @@ -4540,7 +4540,7 @@ if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. -If none of these headers are set or the cooke or token are invalid, the endpoint returns a HTTP 401 status code. +If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: diff --git a/internal/httpclient/api_frontend.go b/internal/httpclient/api_frontend.go index e75bab098fa..7afb4eeda28 100644 --- a/internal/httpclient/api_frontend.go +++ b/internal/httpclient/api_frontend.go @@ -688,7 +688,7 @@ type FrontendApi interface { if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. - If none of these headers are set or the cooke or token are invalid, the endpoint returns a HTTP 401 status code. + If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: @@ -4540,7 +4540,7 @@ if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. -If none of these headers are set or the cooke or token are invalid, the endpoint returns a HTTP 401 status code. +If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: diff --git a/session/handler.go b/session/handler.go index 36afabe768e..601f3e3c1c6 100644 --- a/session/handler.go +++ b/session/handler.go @@ -173,7 +173,7 @@ type toSession struct { // - if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; // - if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. // -// If none of these headers are set or the cooke or token are invalid, the endpoint returns a HTTP 401 status code. +// If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. // // As explained above, this request may fail due to several reasons. The `error.id` can be one of: //