ToDeviceChallenge converts the flow into a device challenge.
(ctx context.Context, cipherProvider CipherProvider)
| 507 | |
| 508 | // ToDeviceChallenge converts the flow into a device challenge. |
| 509 | func (f *Flow) ToDeviceChallenge(ctx context.Context, cipherProvider CipherProvider) (string, error) { |
| 510 | return Encode(ctx, cipherProvider.FlowCipher(), f, AsDeviceChallenge) |
| 511 | } |
| 512 | |
| 513 | // ToDeviceVerifier converts the flow into a device verifier. |
| 514 | func (f *Flow) ToDeviceVerifier(ctx context.Context, cipherProvider CipherProvider) (string, error) { |