passkey

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package passkey implements a provider that uses the WebAuthn PRF extension via the user's browser to derive a deterministic 32-byte secret from a passkey (platform authenticator, security key, or cross-device via phone).

The browser handles all the UX — including showing a QR code for cross-device passkey flows (caBLE/hybrid transport). We just serve a localhost page that calls the WebAuthn API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Passkey

type Passkey struct{}

func (*Passkey) Derive

func (p *Passkey) Derive(ctx context.Context, params map[string]string) ([]byte, error)

func (*Passkey) DeriveTimeout

func (p *Passkey) DeriveTimeout() time.Duration

func (*Passkey) Description

func (p *Passkey) Description() string

func (*Passkey) Enroll

func (p *Passkey) Enroll(ctx context.Context, id string) (*provider.EnrollResult, error)

func (*Passkey) InteractiveDerive

func (p *Passkey) InteractiveDerive() bool

func (*Passkey) Type

func (p *Passkey) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL