LaundryAPI
  1. Authentication
LaundryAPI
  • Authentication
    • Signup
      POST
    • Resend Verification Code
      POST
    • Verify phone number
      POST
    • Login
      POST
    • Refresh Token
      GET
    • Forgot Password
      POST
    • Reset Password
      PATCH
    • Update Password
      PATCH
    • Logout
      POST
  • Users
    • Get Me
      GET
    • Update Me
      PATCH
    • Delete Me
      DELETE
    • Get All Users
      GET
    • Update User
      PATCH
    • Delete User
      DELETE
    • Create Delivery
      POST
    • Create Admin
      POST
  • Items
    • Get all items
      GET
    • Get Single item
      GET
    • Create item
      POST
    • Update item
      PATCH
    • Delete item
      DELETE
  • Orders
    • Get all orders
      GET
    • Single Order
      GET
    • Create Order
      POST
    • Delete order
      DELETE
    • Update Order
      PATCH
  • Branches
    • All Branches
    • Single Branch
    • branch's orders
    • Nearest Branches
    • Create Branch
    • update branch
    • Delete branch
  • Notifications
    • All Notifications
    • Create notification
    • Delete Notification
  • Banners
    • All Banners
    • Create Banner
    • Delete Banners
  • WhatsApp
    • initialize whatsapp Session
  1. Authentication

Refresh Token

GET
http://82.180.154.188:4352/auth/refresh
Last modified:2025-04-05 19:18:21
This endpoint generates a new access token for authenticated users, allowing them to stay logged in without needing to re-enter credentials. It should be called when the current access token expires.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://82.180.154.188:4352/auth/refresh' \
--header 'Cookie: jwt=<Refresh Token>'
Response Response Example
{
    "status": "success",
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mbyI6eyJlbWFpbCI6Im1hamR3YWhvb2JAZ21haWwuY29tIiwiZnVsbE5hbWUiOnsiZmlyc3ROYW1lIjoibWFqZCIsImxhc3ROYW1lIjoid2Fob29iIiwiX2lkIjoiNjdhOTEzNzgzZDM5ZjJjODAyOWJiMTkwIn0sInJvbGUiOiJVU0VSIn0sImlhdCI6MTczOTEzNDIxNywiZXhwIjoxNzM5MTM2MDE3fQ.0AqAw82dJu7GTh6AiDJsiaETWxA0zuYsvyn3nAhTEh0"
}

Request

Cookie Params
jwt
string 
required
Example:
<Refresh Token>

Responses

🟢200Refresh Token
application/json
Body
status
string 
required
accessToken
string 
required
Previous
Login
Next
Forgot Password
Built with