What are you trying to achieve?

Authenticating to an external API via a cookie, or for a user authenticating to bubble using this method?