# Authentification Using Device Flow

### **Login**

To login, run the following command:

```
kaas-cli login
```

You will be prompted with this message:

```
Your user code: A111-B333
Open the link and type your code: https://github.com/login/device
Then hit 'Enter'.
Press Enter to continue or type 'q' to quit: 
```

Follow the link in the browser, and you will see the following window:

<figure><img src="https://3515344941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuVN3ospSdbIsN8UHDZSg%2Fuploads%2FFke3bVImRRNcDQhhYatt%2Fimage.png?alt=media&#x26;token=ae879983-6939-4100-86dc-4e4ab217d551" alt=""><figcaption></figcaption></figure>

Copy the code from the terminal and paste it into the browser. Then click "Continue." After the code is confirmed, click the "Authorize runtimeverification" button.

<figure><img src="https://3515344941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuVN3ospSdbIsN8UHDZSg%2Fuploads%2FHKKMYMLsV1lPzpciUlhX%2Fimage.png?alt=media&#x26;token=8f96fc71-d8e3-42a7-a721-fa1d69cf1bac" alt=""><figcaption></figcaption></figure>

You will then see the message below.

<figure><img src="https://3515344941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuVN3ospSdbIsN8UHDZSg%2Fuploads%2F9l41mI8Av03MVornitHk%2Fimage.png?alt=media&#x26;token=5c753890-3f33-4c59-aac0-094ed6d7e53b" alt=""><figcaption></figcaption></figure>

You can now return to the terminal where the `cli` is open and click "Enter." You will see this message:

```
You pressed Enter. The application continues...
Access token received. We store it in the cache folder.
```

To confirm that you are logged in, run the following command:

```
kaas-cli check-auth
```

If you are logged in you will see the following output in your terminal:

```
You are currently authenticated.
```
