1 post:
2 operationId: PostAdminAuthTokenRefresh
3 summary: Refresh Authentication Token
4 description: >-
5 Refresh the authentication token of a customer. This is useful after
6 authenticating a customer with a third-party service to ensure the token
7 holds the new user's details, or when you don't want customers to re-login
8 every day.
9 externalDocs:
10 url: >-
11 https://docs.medusajs.com/resources/storefront-development/customers/third-party-login
12 description: 'Storefront development: Implement third-party (social) login.'
13 x-authenticated: true
14 x-codeSamples:
15 - lang: JavaScript
16 label: JS SDK
17 source:
18 $ref: ../code_samples/JavaScript/auth_token_refresh/post.js
19 - lang: Shell
20 label: cURL
21 source:
22 $ref: ../code_samples/Shell/auth_token_refresh/post.sh
23 tags:
24 - Auth
25 responses:
26 '200':
27 description: OK
28 content:
29 application/json:
30 schema:
31 $ref: ../components/schemas/AuthResponse.yaml
32 '400':
33 $ref: ../components/responses/400_error.yaml
34 '401':
35 $ref: ../components/responses/unauthorized.yaml
36 '404':
37 $ref: ../components/responses/not_found_error.yaml
38 '409':
39 $ref: ../components/responses/invalid_state_error.yaml
40 '422':
41 $ref: ../components/responses/invalid_request_error.yaml
42 '500':
43 $ref: ../components/responses/500_error.yaml