PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Token expiration length for API key login

produkt

Apr 23rd, 2025 06:28 AM

In the config/wave.php file there is a key for 'api' => 'auth_token_expires', does this only control the expiration for logging into the API with user name and password?

I was getting a 1 hour expiration when using the API key to login, and I noticed that in config/jwt.php there is a 'ttl' => env('JWT_TTL', 60) entry. If I add JWT_TTL=10080 into my .env file, I get a 500 error.

The error is: "Carbon\Carbon::rawAddUnit(): Argument #3 ($value) must be of type int|float, string given"

I instead was able to change it to 'ttl' => env('JWT_TTL', 10080) but I'm wondering why adding the JWT_TTL key in the .env file produces an error when it should produce the same result?

produkt

May 3rd, 2025 08:11 AM

Any ideas?

jetsetwilly

Jun 11th, 2025 01:36 PM

I have the same problem. Anyone?