Files
gamertan bfe6cfd29e
verify / verify (push) Successful in 3m40s
auth: publish passkey foundations preview
2026-08-21 17:33:00 -04:00

20 lines
443 B
Go
Vendored

package webauthn_test
import "github.com/go-webauthn/webauthn/webauthn"
// Example_newRelyingParty demonstrates initializing a relying party.
func Example_newRelyingParty() {
config := &webauthn.Config{
RPDisplayName: "Go WebAuthn",
RPID: "app.awesome-go-webauthn.com",
RPOrigins: []string{"https://app.awesome-go-webauthn.com"},
}
handler, err := webauthn.New(config)
if err != nil {
panic(err)
}
_ = handler
}