get_bearer_token function

Get bearer token using the cookie token