Skip to main content

Ionic Multiple Serve

ionic serve --port 8081 --livereload-port 35730 --dev-logger-port 53704

Comments

Popular posts from this blog

Git SSH Setup on Gitlab

You can setup your gitlab account with SSH Key Step-1:  Open Git Bash in Windows OS OR in Mac OS open Terminal Step-2: Run below Command (Replace your mail address)           ssh-keygen -t rsa -C " youremail@domain.com " -b 4096 It will ask few questions. You have just Enter. Step-2: Run the below command to read SSH Key      cat ~/.ssh/id_rsa.pub Copy your SSH key until your email address. Step-3: Open you gitlab Account  Go to Settings  Click on 'SSH Keys' (Left Bottom Side) Paste SSH Key If you want to set expiry of your SSH Key then you can set an expiry date. Then Click on 'Add Key' Button Finish

How to decode JWT token

Hey, you can decode JWT (JSON Web Token) by using this method. function   parseJwt ( token )  {      try  {        return   JSON . parse ( atob (token . split ( ' . ' )[ 1 ]));     }  catch  (e) {        return   null ;     }   };   parseJwt ( " eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZ S   I6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImp0aSI6ImNmNTMxNjgxLWZkZWQtNDQ0My1hNjQ1LTQ4NThh  NDQ1YzU1ZSIsImlhdCI6MTU5MDA1NTQ3NSwiZXhwIjoxNTkwMDU5MDc1fQ.H1QW0pQVfdW3nbwA- GfHGKP   cu1 - qyuh99UlXIEPBQJ8 " ) ; Output: {   "sub": "1234567890",   "name": "John Doe",   "admin": true,   "jti": "cf531681-fded-4443-a645-4858a445c55e",   "iat": 1590055475,   "exp": 1590059075 }