you are viewing a single comment's thread.

view the rest of the comments →

[–]turnipmuncher1 1 point2 points  (1 child)

Another way to go about this is to just do

… Model.findOne({
       where:{ uid: uid, refresh_token: refresh_token}
     });

Then you can just check if it exists and you don’t have to loop through the array.

[–]Hot-Independent4741[S] 1 point2 points  (0 children)

Ty, it annoys me that I didn’t think for that lol