mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
16 lines
425 B
Go
16 lines
425 B
Go
package passkeys
|
|||
|
|
|
||
|
|
//
|
||
|
|
// import (
|
||
|
|
// "github.com/go-webauthn/webauthn/protocol"
|
||
|
|
// "github.com/labstack/echo/v4"
|
||
|
|
// "github.com/onsonr/sonr/crypto/mpc"
|
||
|
|
// )
|
||
|
|
//
|
||
|
|
// func Link(c echo.Context, handle string, ks mpc.Keyset) protocol.PublicKeyCredentialCreationOptions {
|
||
|
|
// origin := c.Request().Host
|
||
|
|
// svcName := c.Request().Host
|
||
|
|
// addr := ks.Address()
|
||
|
|
// return c.String(200, origin+" "+svcName+" "+addr+" "+handle)
|
||
|
|
// }
|