Get the token from different places