Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
diezo authored Jan 22, 2024
1 parent adc5d2b commit 5e6c3df
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,24 @@ host = Host(username, password)

<summary>2FA Login</summary><br>

**Authenticator App**

```python
from ensta import Host

host = Host(username, password, totp_token=token)
# The key you got from Instagram when setting up your Authenticator App
key = "R65I7XTTHNHTQ2NKMQL36NCWKNUPBSDG"

host = Host(
username,
password,
totp_token=key
)
```

If you've enabled SMS 2FA, you'll be automatically prompted for OTP when you run your code.
**SMS Based**

No need to configure anything. Ensta will automatically ask for SMS OTP in the runtime.

</details>

Expand Down

0 comments on commit 5e6c3df

Please sign in to comment.