Skip to content

Commit

Permalink
Putting instructions for GitHub in a separate section.
Browse files Browse the repository at this point in the history
  • Loading branch information
gl-yziquel committed Sep 26, 2023
1 parent a09b0ec commit cfd4eec
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ For example::
Note that if the service already exists, it will be overwritten without
warning.

For GitHub, you may find the requested shared key by logging into your
account, clicking on your profile photo to deploy a drop down menu, clicking
on the "Settings" option in the drop down menu, then, in the "Access" section
of the sidebar, click on "Password and Authentication", then, in the
"Two-factor authentication" section of the page, click on "Enable two-factor
authentication", and, instead of scanning the QR code, click on "setup key".
The shared key required by totp will then be displayed on the screen.

To output without copying to the clipboard:

$ totp -n SERVICE
Expand All @@ -97,6 +89,17 @@ provided in a separate line, with a format like:

For the moment, only customizing the token length is possible.

Usage with GitHub
-----------------

For GitHub, you may find the requested shared key by logging into your
account, clicking on your profile photo to deploy a drop down menu, clicking
on the "Settings" option in the drop down menu, then, in the "Access" section
of the sidebar, click on "Password and Authentication", then, in the
"Two-factor authentication" section of the page, click on "Enable two-factor
authentication", and, instead of scanning the QR code, click on "setup key".
The shared key required by `totp` will then be displayed on the screen.

Requirements
------------

Expand Down

0 comments on commit cfd4eec

Please sign in to comment.