npm i -g @nestjs/cli
yarn add class-validator class-transformer
yarn add @nestjs/mapped-types
Check if you have existing keys by opening the terminal and entering:
ssh-add -l
OR ls -al ~/.ssh
and check for any file called (usually) id_rsa or similar
Identify the host you're using your current key for. You probably added this key to, for example your github or gitlab account. We will use this later on.
If you don't have a config file on ~/.ssh
folder, you will need to create one. We'll get back to this later.
/** | |
* This script expects the global variables 'refresh_token' and 'firebase_api_key' to be set. 'firebase_api_key' can be found | |
* in the Firebase console under project settings then 'Web API Key'. | |
* 'refresh_token' as to be gathered from watching the network requests to https://securetoken.googleapis.com/v1/token from | |
* your Firebase app, look for the formdata values | |
* | |
* If all the data is found it makes a request to get a new token and sets a 'auth_jwt' environment variable and updates the | |
* global 'refresh_token'. | |
* | |
* Requests that need authentication should have a header with a key of 'Authentication' and value of '{{auth_jwt}}' |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"