Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Petteri Kautonen committed Oct 1, 2023
1 parent a3157c7 commit f779497
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ import { decodeMigrationUri } from "../src";

void decodeMigrationUri("otpauth-migration://offline?data=Ch8KBdFBKZJTEgpUZXN0IFRva2VuGgQyRkFTIAEoATACEAEYASAAKIji6ej7%2F%2F%2F%2F%2FwE%3D").then(result = console.log(result));
```
output:

```javascript
[
{
algorithm: "ALGO_SHA1",
digits: 1,
issuer: "2FAS",
name: "Test Token",
secret: "0UEpklM=",
secretBase32: "2FASTEST",
type: "OTP_TOTP"
}
]
```

# Thanks to
* [google-authenticator-exporter](https://github.com/krissrex/google-authenticator-exporter) project to which the entire code is based upon.
* [google-authenticator-exporter](https://github.com/krissrex/google-authenticator-exporter) project to which the entire code is based upon.
* [TypeScript NPM Package Publishing: A Beginner’s Guide](https://pauloe-me.medium.com/typescript-npm-package-publishing-a-beginners-guide-40b95908e69c)

0 comments on commit f779497

Please sign in to comment.