chore(docs): Generated API Reference (#4706)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
co-authored by
olivermrbl
Shahed Nasser
parent
efdea04963
commit
658339767b
@@ -1,7 +1,7 @@
|
||||
get:
|
||||
operationId: GetAuth
|
||||
summary: Get Current Customer
|
||||
description: Gets the currently logged in Customer.
|
||||
description: Retrieve the currently logged in Customer's details.
|
||||
x-authenticated: true
|
||||
x-codegen:
|
||||
method: getSession
|
||||
@@ -41,8 +41,10 @@ post:
|
||||
operationId: PostAuth
|
||||
summary: Customer Login
|
||||
description: >-
|
||||
Logs a Customer in and authorizes them to view their details. Successful
|
||||
authentication will set a session cookie in the Customer's browser.
|
||||
Log a customer in and includes the Cookie session in the response header.
|
||||
The cookie session can be used in subsequent requests to authenticate the
|
||||
customer. When using Medusa's JS or Medusa React clients, the cookie is
|
||||
automatically attached to subsequent requests.
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
@@ -83,7 +85,7 @@ post:
|
||||
delete:
|
||||
operationId: DeleteAuth
|
||||
summary: Customer Log out
|
||||
description: Destroys a Customer's authenticated session.
|
||||
description: Delete the current session for the logged in customer.
|
||||
x-authenticated: true
|
||||
x-codegen:
|
||||
method: deleteSession
|
||||
|
||||
Reference in New Issue
Block a user