Skip to content

Commit 6f29205

Browse files
cherukumillidrew-gross
authored andcommitted
Adds ability to expire email verify token (#2216)
1 parent 033bc31 commit 6f29205

File tree

10 files changed

+591
-8
lines changed

10 files changed

+591
-8
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,17 @@ var server = ParseServer({
226226
// Enable email verification
227227
verifyUserEmails: true,
228228

229+
// if `verifyUserEmails` is `true` and
230+
// if `emailVerifyTokenValidityDuration` is `undefined` then
231+
// email verify token never expires
232+
// else
233+
// email verify token expires after `emailVerifyTokenValidityDuration`
234+
//
235+
// `emailVerifyTokenValidityDuration` defaults to `undefined`
236+
//
237+
// email verify token below expires in 2 hours (= 2 * 60 * 60 == 7200 seconds)
238+
emailVerifyTokenValidityDuration = 2 * 60 * 60, // in seconds (2 hours = 7200 seconds)
239+
229240
// set preventLoginWithUnverifiedEmail to false to allow user to login without verifying their email
230241
// set preventLoginWithUnverifiedEmail to true to prevent user from login if their email is not verified
231242
preventLoginWithUnverifiedEmail: false, // defaults to false

0 commit comments

Comments
 (0)