MCPcopy
hub / github.com/ory/hydra / ToDeviceVerifier

Method ToDeviceVerifier

flow/flow.go:514–516  ·  view source on GitHub ↗

ToDeviceVerifier converts the flow into a device verifier.

(ctx context.Context, cipherProvider CipherProvider)

Source from the content-addressed store, hash-verified

512
513// ToDeviceVerifier converts the flow into a device verifier.
514func (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.
519func (f Flow) ToLoginChallenge(ctx context.Context, cipherProvider CipherProvider) (challenge string, err error) {

Callers 2

acceptUserCodeRequestMethod · 0.80

Calls 2

EncodeFunction · 0.70
FlowCipherMethod · 0.65

Tested by 1