passkey-go-example

Go での Passkey Autofill を試すための実装

以下の二つのライブラリを利用

How to run

go run cmd/server/main.go

access to http://localhost:8080/ and try to register and login.

Endpoint

登録

パスキーの登録時には以下のエンドポイントを利用

  • POST: /attestation/options
  • POST: /attestation/result

(出典:ウェブ認証 API – Web API | MDN )

認証

パスキーによる認証時には以下のエンドポイントを利用

  • POST: /assertion/options
  • POST: /assertion/result

(出典:ウェブ認証 API – Web API | MDN )

Reference