Skip to content

security.getUserId

Get the userId integer of user with a known email address.

js
security.getUserId(email)
security.getUserId(email)

Parameters

  • email - Email address of the user.

Example

js
let userId = security.getUserId("jane.doe@example.com"); // 1234
let userId = security.getUserId("jane.doe@example.com"); // 1234