How to get the secret key

There is no easy way to obtain the secret key, period.

Duolingo does not support logging in to third parties, so this method is a hack at best.

ONLY PROCEED TO FOLLOW THE INSTRUCTIONS IF YOU TRUST THE AUTHOR OF THIS WEBSITE

  1. Log into your duolingo account on a desktop browser.
  2. Once logged in, open the developer console inside the duolingo page (Right click > Inspect).
  3. You should be able to see tabs like Elements, Console, Sources, Network... be sure to click on Console.
  4. Copy/paste the code below and click Enter.

    document.cookie.match(/jwt_token=(.*?);/)[1]

    If you've never used developer console before, you might get a message like this: Warning: Don't paste code into DevTools Console..., in which case you can simply type allow pasting and click Enter, and you'll be able to paste all you want.
  5. Once you pasted the code and clicked Enter, you should see something like this:

    'eyW0eXAiOiJK31QiLCJhbGc8OiJIUzI1NiJ9.eyJlhHAiOjYzMDcyll4wMDAsImlhdCI6MCwic3ViIjoxMDQ3N960Mjk0fQ.xdFHMZxa_JCanaMDe751QQgahr9Pw9HJlKwKi0NXLc4'

  6. That's it! That's your secret key!