             claims.append(ExpirationTimeClaim(self.generateExpirationDate()))
             
         }
-
+        
         // Add the claims passed into the method
         claims.append(contentsOf: extraClaims)
-
+        
         // Add user info
-        claims.append(UserClaim(userInfo))
-
+        claims.append(UserClaim(node))
+        
         let claimNode = Node(claims)
-
+        
         // Generate our Token
         let jwt = try JWT(
             payload: claimNode,

        // Return the token string
        return try jwt.createToken()
    }

    public func generateResetPasswordToken(user: UserType) throws -> String {


        return false
    }

     public func generateToken(node: Node, extraClaims: [Claim]) throws -> String {
        // Prepare claims
        var claims: [Claim] = []
        
        // Prepare expiration claim if needed. If we added an expiration time claim
        // DO NOT override it
        if self.secondsToExpire > 0 && !extraClaims.contains(where: { $0 is ExpirationTimeClaim }) {
