summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/sso/class.jetpack-sso-helpers.php')
-rw-r--r--plugins/jetpack/modules/sso/class.jetpack-sso-helpers.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/sso/class.jetpack-sso-helpers.php b/plugins/jetpack/modules/sso/class.jetpack-sso-helpers.php
index 85a683c3..9d9c5477 100644
--- a/plugins/jetpack/modules/sso/class.jetpack-sso-helpers.php
+++ b/plugins/jetpack/modules/sso/class.jetpack-sso-helpers.php
@@ -227,6 +227,19 @@ class Jetpack_SSO_Helpers {
return $user;
}
+
+ static function extend_auth_cookie_expiration_for_sso() {
+ /**
+ * Determines how long the auth cookie is valid for when a user logs in with SSO.
+ *
+ * @module sso
+ *
+ * @since 4.4.0
+ *
+ * @param int YEAR_IN_SECONDS
+ */
+ return intval( apply_filters( 'jetpack_sso_auth_cookie_expirtation', YEAR_IN_SECONDS ) );
+ }
}
endif;