ToDeviceVerifier converts the flow into a device verifier.
(ctx context.Context, cipherProvider CipherProvider)
| 512 | |
| 513 | // ToDeviceVerifier converts the flow into a device verifier. |
| 514 | func (f *Flow) ToDeviceVerifier(ctx context.Context, cipherProvider CipherProvider) (string, error) { |
| 515 | return Encode(ctx, cipherProvider.FlowCipher(), f, AsDeviceVerifier) |
| 516 | } |
| 517 | |
| 518 | // ToLoginChallenge converts the flow into a login challenge. |
| 519 | func (f Flow) ToLoginChallenge(ctx context.Context, cipherProvider CipherProvider) (challenge string, err error) { |