Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-561

Automatically prompt for new login when session is invalid

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.0.0
    • Fix Version/s: Release 4.0.0
    • Component/s: Verification
    • Labels:
      None
    • Environment:

      appc 0.2.247

    • Story Points:
      3
    • Sprint:
      2015 Sprint 08 Tooling

      Description

      Every now and then I get the error we see reported in the Q&A a lot as well:

      ERROR | invalid session
      

      Logging out (I using -D to be sure) and in again fixes it.

      I think the UX would be better if don't spit out an error but inform the user the session as expired and he needs to login again. Then under the hood logout, clean up whatever we can and present the login again.

      ≫ appc new
      Appcelerator Command-Line Interface, version 0.2.247
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
      ? What type of project are you creating? Native App
      ? Which SDK would you like to use? Titanium SDK (JavaScript)
      ? What's the project name? bully
      ? What's your application id (example: com.myapp)? nl.fokkezb
      ERROR  | invalid session
       
      (~/dev/tests)
      ≫ appc logout -D
      Appcelerator Command-Line Interface, version 0.2.247
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
      logged out
       
      (~/dev/tests)
      ≫ appc login
      Appcelerator Command-Line Interface, version 0.2.247
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
      Appcelerator Login required to continue ...
       
      ? Appcelerator ID: fzandbergen@appcelerator.com
      ? Password: *********
      ? Into which organization would you like to login? Appcelerator, Inc
       
      This computer must be authorized before you can complete your login.
       
      ? Confirm with authorization code to Email or Phone/SMS? SMS to +31624105142
       
      An authorization code was sent to your phone at +31624105142
       
      ? Please enter the code you received: 1086
       
      This computer is now authorized: Mac OSX Serial Number: C02MP05QFH05
      You can deauthorize this computer by logging out with appc logout
       
      Generating Developer Certificate and Private/Public Keys...
      fzandbergen@appcelerator.com logged into organization Appcelerator, Inc [14301]
       
      (~/dev/tests)
      ≫ appc new
      Appcelerator Command-Line Interface, version 0.2.247
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
      ? What type of project are you creating? Native App
      ? Which SDK would you like to use? Titanium SDK (JavaScript)
      ? What's the project name? bully
      ? What's your application id (example: com.myapp)? nl.fokkezb
      ? Please provide your password for enabling Test service: *********
       
      *** new completed. ***
      

        Attachments

          Activity

            People

            • Assignee:
              mdadu Muhammad Dadu (Inactive)
              Reporter:
              fokkezb Fokke Zandbergen
              Reviewer:
              Feon Sua Xin Miao
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code