Skip to content

Instantly share code, notes, and snippets.

@smd877
Created November 2, 2022 16:33
Show Gist options
  • Save smd877/a70e5808fbf47df2fd55921da27c56cd to your computer and use it in GitHub Desktop.
Save smd877/a70e5808fbf47df2fd55921da27c56cd to your computer and use it in GitHub Desktop.
TOTPでトークンを取得するサンプル
import passlib.totp
passlib.totp.TOTP('SECRETの値').generate().token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment