async session(session, token) {
            // Add property to session, like an access_token from a provider.
            console.log('session', session, token);
            const results = await query(
                squel.select()
                    .from("users")
                    .field("id")
                    .field("users.role")
                    .where(`email = ?`, session.user.email)
                    .limit(1)
                    .toString()
            )
            const { id, role } = results[0];
            session.id = id;
            session.role = role;
            return session
        }
/**
         * @param  {object} session      Session object
         * @param  {object} token        User object    (if using database sessions)
         *                               JSON Web Token (if not using database sessions)
         * @return {object}              Session that will be returned to the client 
         */
@param  {object} session      Session object
@param  {object} token        User object    (if using database sessions)
JSON Web Token (if not using database sessions)
@return {object}              Session that will be returned to the client
@param { object } session Session object @param { object } token User object ( if using database sessions ) JSON Web Token ( if not using database sessions ) @return { object } Session that will be returned to the client
async session(session, token) {
            console.log('session', session, token);
            const results = await query(
                squel.select()
                    .from("users")
                    .field("id")
                    .field("users.role")
                    .where(`email = ?`, session.user.email)
                    .limit(1)
                    .toString()
            )
            const { id, role } = results[0];
            session.id = id;
            session.role = role;
            return session
        }
async session ( session , token ) { console . log ( 'session' , session , token ) ; const results = await query ( squel . select ( ) . from ( "users" ) . field ( "id" ) . field ( "users.role" ) . where ( ` ` , session . user . email ) . limit ( 1 ) . toString ( ) ) const { id , role } = results [ 0 ] ; session . id = id ; session . role = role ; return session }
@param  {object} session      Session object
 @param  {object} token        User object    (if using database sessions)
                               JSON Web Token (if not using database sessions)
 @return {object}              Session that will be returned to the client
@param { object } session Session object @param { object } token User object ( if using database sessions ) JSON Web Token ( if not using database sessions ) @return { object } Session that will be returned to the client
// Add property to session, like an access_token from a provider.