Rewards points

@jonatandor35

import { authentication } from ‘wix-members’ ;
import wixLocation from ‘wix-location’ ;
import { doRegistration } from ‘backend/register.jsw’ ;
import { myApproveByEmailFunction } from “backend/register.jsw”

let emails = ;

$w . onReady ( function () {
$w ( ‘#register’ ). onClick (() => {
const password = $w ( ‘#password’ ). value ;
const email = $w ( ‘#email’ ). value ;
emails . push ( email );

    const  recommenderId  =  wixLocation . query ?. recid ; 

    let  options  = { 
        contactInfo : { 
            firstName :  $w ( '#firstName' ). value , 
            lastName :  $w ( '#lastName' ). value , 
            emails :  emails , 
        }, 
        privacyStatus :  'PUBLIC' 
    } 
    

    authentication . register ( email ,  password ,  options ) 
        . then (( registrationResult ) => { 
            const  status  =  registrationResult . status ; 
            console . log ( recommenderId , "recommenderId" ); 
            // When the site is configured for automatic approval, status is "ACTIVE" and the member is approved and logged in. 
            console . log ( 'Member registered and logged in:' ,  registrationResult ); 
        }) 
        . catch (( error ) => { 
            console . error ( error ); 
        }); 
}); 

});

Here is my code. when I use email to register. It will get a page like this.

but the recommenderId is not in my log.Thanks.