Access APIs with JWT

    • Bjoern Hennings
      Participant
        # 2 years, 1 month ago

        Hi all,

        I am struggling to get the JWT Token auth to work. I send email and password of my service user via POST request to my login page, but it will prompt “Page expired” as an answer. When I try to send GET requests to my APIs (with my Token), it will always prompt “Wrong number of segments”. I must admit I have not worked with JWT Auth so far.

        Any help is appreciated on this.

      • laravel-bap
        Keymaster
          # 2 years, 1 month ago

          Hi,

          First you need to use login methody. When logged in you will get “access_token”.
          Then you need to use this access token in header auhorization.

          check sceenshots from postman below.

          1. Login – https://nimb.ws/7NwX02
          2. Get Leads – https://nimb.ws/yAcdFW
          3. Option only for super admin – switch company context – https://nimb.ws/btjGwk

        • Bjoern Hennings
          Participant
            # 2 years ago

            Thanks, this worked like a charm.

        Viewing 2 reply threads

        You must be logged in to reply to this topic.