Utility class to get manipulate session when inside On Mobile App Authentication
database method.
in On Mobile App Authentication
wrap the first input parameters
$auth:=Mobile App Authentication($1) // $1 Informations provided by mobile application
Then you can have some information about mobile applications and session.
$myAppId:=$auth.getAppId()
$currentSessionFile:=$auth.getSessionFile()
$currentSessionObject:=$auth.getSessionObject()
Setting the status to "pending" ie. not validated yet.
$currentSessionObject.status:="pending"
$currentSessionObject.save() // save to File on disk
$0:=$auth.confirmEmail()
You must configure first your SMTP server to send emails - more detail available here