Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Bagisto Signout API not working properly

    Bug Report
    2
    3
    695
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nomeha last edited by

      ![alt text](a37d1d10-e700-4e8d-b7cd-626d0918c873-image.png image url)

      I am using the above API to sign out customer but what I am getting in response is

      {"error":"Unauthenticated"}
      

      This is my Headers

      Host: meridiana.local
      Connection: keep-alive
      Accept: application/json
      Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVyaWRpYW5hLmxvY2FsL2FwaS9jdXN0b21lci9sb2dpbiIsImlhdCI6MTY0NjgzNwiZXhwIjoxNjQ2ODQwNjYxLCJuYmYiOjE2NDY4MzcwNjEsImp0aSI6Ik9mQ1d5YmZJUHVub3hnQWwiLCJzdWIiOiIxIiwicHJ2IjoiOGZjYTA4OGFiYWUyZjlhOGY4NGE1ZjBiZjZhNjUyNDQ5MDU1YmUwMCJ9.65Z8aJljocPgN81TXs3_aBlBu3bOSkUASIvEC-eVpxI
      contentType: application/json
      Origin: http://localhost:3000
      Referer: http://localhost:3000/
      
      1 Reply Last reply Reply Quote 0
      • sanjay-webkul
        sanjay-webkul last edited by

        Hi @nomeha
        The person is already logged out. so you are getting Unauthenticated response

        1 Reply Last reply Reply Quote 0
        • N
          nomeha last edited by nomeha

          But I was logged in when I was logging out, Nevermind

          php artisan optimize
          

          does the trick for me. Although, Thanks for your replay

          1 Reply Last reply Reply Quote 0
          • First post
            Last post