Shitty attempt to use api authentication