From d3b4b81d6152937b70837c249c46cec57db5311e Mon Sep 17 00:00:00 2001 From: Damilare Koiki Date: Thu, 8 May 2025 20:22:26 +0100 Subject: [PATCH] fix(auth): Give control over profile update after Workos authentication --- routes/auth.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/auth.php b/routes/auth.php index 09bb6a45..b53cf14f 100644 --- a/routes/auth.php +++ b/routes/auth.php @@ -10,7 +10,9 @@ })->middleware(['guest'])->name('login'); Route::get('authenticate', function (AuthKitAuthenticationRequest $request) { - return tap(to_route('dashboard'), fn () => $request->authenticate()); + return tap(to_route('dashboard'), fn () => $request->authenticate( + allowUpdate: true, + )); })->middleware(['guest']); Route::post('logout', function (AuthKitLogoutRequest $request) {