diff --git a/floyd/cli/auth.py b/floyd/cli/auth.py
index <HASH>..<HASH> 100644
--- a/floyd/cli/auth.py
+++ b/floyd/cli/auth.py
@@ -23,6 +23,8 @@ def login(token):
     floyd_logger.info("Please copy and paste the authentication token.")
     access_code = click.prompt('This is an invisible field. Paste token and press ENTER', type=str, hide_input=True)
 
+    access_code = access_code.strip()
+
     if not access_code:
         floyd_logger.info("Empty token received. Make sure your shell is handling the token appropriately.")
         floyd_logger.info("See docs for help: http://docs.floydhub.com/faqs/authentication/")
strip whitespace from access_code on login