Updates token comparisons to use a secure version instead of ==
==
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/13617