mirror of
https://github.com/XFox111/SimpleOTP.git
synced 2026-04-22 08:00:45 +03:00
Created OTPConfiguration.GetQrImage (markdown)
@@ -0,0 +1,19 @@
|
|||||||
|
Namespace: `SimpleOTP.Models`
|
||||||
|
|
||||||
|
Assembly: `SimpleOTP.dll`
|
||||||
|
|
||||||
|
Generates QR code image for current configuration with Google Chart API.
|
||||||
|
```csharp
|
||||||
|
public async Task<string> GetQrImage(int qrCodeSize = 300, int requestTimeout = 30);
|
||||||
|
```
|
||||||
|
### Parameters
|
||||||
|
`qrCodeSize` `Int32`
|
||||||
|
|
||||||
|
QR code image size in pixels.
|
||||||
|
|
||||||
|
`requestTimeout` `Int32`
|
||||||
|
|
||||||
|
Web request timeout in seconds.
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
string-encoded PNG image.
|
||||||
Reference in New Issue
Block a user