From aae0bfb5ab58d27eef57119ba124cb40c788ff77 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 30 Jul 2017 14:21:33 +0200 Subject: [PATCH] Document method 'confirmEmailAndSignIn' from class 'Auth' --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1208f82..05684d9 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,8 @@ catch (\Delight\Auth\TooManyRequestsException $e) { } ``` +If you want the user to be automatically signed in after successful confirmation, just call `confirmEmailAndSignIn` instead of `confirmEmail`. That alternative method also supports [persistent logins](#keeping-the-user-logged-in) via its optional third parameter. + ### Keeping the user logged in The third parameter to the `Auth#login` method controls whether the login is persistent with a long-lived cookie. With such a persistent login, users may stay authenticated for a long time, even when the browser session has already been closed and the session cookies have expired. Typically, you'll want to keep the user logged in for weeks or months with this feature, which is known as "remember me" or "keep me logged in". Many users will find this more convenient, but it may be less secure if they leave their devices unattended.