Bagisto Forum

    Bagisto

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

    Bagisto API token lifetime

    Knowledge Base
    2
    2
    202
    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.
    • R
      rahulanand84 last edited by

      How can I set the Bagisto Token lifetime to like a week or a month? No documentation is available. What PHP setting would support this?

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @rahulanand84,

        Just add JWT_TTL=120 in your .env file and run php artisan optimize command.

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