Skip to content

Commit 2531eed

Browse files
author
Evan Sims
authored
fix: env() incorrectly assigns cookieExpires to a string value (#332)
fix: env() incorrectly setting `cookieExpires` to a string value, typo in `.env` name
1 parent 30a724e commit 2531eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/auth0.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
'cookieSecret' => env('AUTH0_COOKIE_SECRET', env('APP_KEY')),
4040

4141
// How long, in seconds, before cookies expire. If set to 0 the cookie will expire at the end of the session (when the browser closes).
42-
'cookieExpires' => env('COOKIE_EXPIRES', 0),
42+
'cookieExpires' => (int) env('AUTH0_COOKIE_EXPIRES', 0),
4343

4444
// Cookie domain, for example 'www.example.com', for use with PHP sessions and SDK cookies. Defaults to value of HTTP_HOST server environment information.
4545
// Note: To make cookies visible on all subdomains then the domain must be prefixed with a dot like '.example.com'.

0 commit comments

Comments
 (0)