how to pass bearer token in rest api