Bagisto Forum

    Bagisto

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

    Bagisto API login without token lifetime

    General Discussion
    bagisto api bagisto api login
    2
    2
    338
    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.
    • F
      fiqih.majaindo last edited by fiqih.majaindo

      How I can use login api without lifetime? because I use it for mobile app

      1 Reply Last reply Reply Quote 0
      • A
        aliraza last edited by aliraza

        You can extend token lifetime by updating this in {your-project}\config\jwt.php file
        assuming this is JWT_TTL=NULL in .env file.

        'ttl' => env('JWT_TTL', 60),
        

        update 60 to your limit

        I use this

        'ttl' => env('JWT_TTL', 20160),
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post