패키지, 저장소 및 앱 카테고리 검색

passkeys 표지
패키지 상세v2.24.1

passkeys

간단한 패스키 인증을 가능하게 하는 Flutter 플러그인입니다. 사용 가능한 신뢰 당사자 서버(Corbado) 또는 귀하의 커스텀 신뢰 당사자와 함께 사용할 수 있습니다.

AndroidiOSWebmacOSWindows
30일 다운로드
24.1만
좋아요
115
Pub 점수
150

패키지 설치

flutter pub add passkeys

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

passkeys 패키지는 Android, iOS, 웹, macOS 및 Windows를 포함한 여러 플랫폼에서 패스키 기반 인증을 간소화하는 Flutter 플러그인입니다. Corbado의 즉시 사용 가능한 신뢰 당사자 서버 또는 사용자 정의 신뢰 당사자 구현과의 통합을 지원합니다. 보안성과 비밀번호 없는 로그인 경험을 위해 설계되었으며, 플랫폼 내장 생체 인식 및 장치 인증 메커니즘을 활용합니다. 복잡한 암호화 작업을 추상화하여 개발자가 최소한의 설정으로 현대적인 인증 흐름을 구현할 수 있도록 합니다. 보안과 사용자 편의성을 우선시하는 앱에 적합합니다.

사용 사례

  • 비밀번호 없는 로그인
  • 생체 인증
  • 보안 앱 액세스
  • 크로스 플랫폼 인증
  • 신원 공급자와의 통합

주요 기능

  • Corbado 및 사용자 정의 신뢰 당사자 지원
  • 플랫폼 네이티브 생체 인식
  • 크로스 플랫폼 호환성
  • 패스키 관리를 위한 간단한 API
  • 보안 자격 증명 저장

적합한 대상

  • 강력한 인증이 필요한 앱
  • 비밀번호 없는 시스템을 구축하는 개발자
  • Corbado 또는 커스텀 IdP를 사용하는 팀
  • 모바일 및 데스크톱 애플리케이션
  • 보안 중심 애플리케이션

고려 사항

  • 백엔드 신뢰 당사자 설정이 필요합니다
  • 지원되는 플랫폼에 한정
  • 기기 생체 인식 가능 여부에 따라 다름
  • 사용자 지정 서버를 위해 추가 구성이 필요할 수 있습니다
  • 비생체 환경에는 적합하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

GitHub Repo Cover

Flutter passkeys

Flutter packages to enable passkey authentication (based on WebAuthn / FIDO2).

Android iOS Linux macOS Web Windows
Support :white_check_mark: :white_check_mark: :x: :white_check_mark: :white_check_mark: :white_check_mark:
passkey-signup

Current list of packages

1. Passkeys
Description

A Flutter package that enables simple passkey authentication. Currently Android, iOS, macOS, Web and Windows are supported.

Features
  • sign up and login users with passkeys
  • connect your own relying party server or use pre-implemented ones

Read more

2. Corbado Auth
Description

A Flutter package that builds on the passkeys package. It adds additional functionalities to make it simpler to use passkey authentication in your own Flutter app.

integration-guides

Features
  • sign up and login users with passkeys
  • connect Corbado as pre-implemented relying party server
  • keep users logged in even if they close the app (automatic session refresh)

Read more

3. Corbado Auth Firebase

A Flutter package that builds on the corbado_auth and the passkeys package. It helps you to integrate passkey authentication into your Flutter app that uses Firebase as a backend.

Note: This package is currently broken and will be fixed in the future. There is no specific ETA on when the fix will be available.

Features
  • allow new users to sign up and log in using passkeys
  • allow existing users (that you created with Firebase authentication) to setup a passkey and then log in with it
  • email OTP codes as fallback mechanism for situations when passkeys can not be used (e.g. when a user logs in to a device where none of his passkeys is available)

Read more

4. Supabase

The passkeys package can be used as the platform authenticator for supabase_flutter. Supabase Auth acts as the relying party server, while passkeys handles the native passkey prompts on iOS, Android, macOS, Windows and Web.

It requires supabase_flutter 2.15.0 or later and passkeys 2.21.0 or later.

Setup

Add both packages to your pubspec.yaml:

dependencies:
  supabase_flutter: ^2.15.0
  passkeys: ^2.21.0

Initialize Supabase as usual and create a PasskeyAuthenticator that you pass to the passkey methods:

import 'package:passkeys/authenticator.dart';
import 'package:supabase_flutter/supabase_flutter.dart';

await Supabase.initialize(
  url: supabaseUrl,
  anonKey: supabaseAnonKey,
);

final supabase = Supabase.instance.client;
final authenticator = PasskeyAuthenticator();
Registering a passkey

Registering a passkey requires a signed in (non-anonymous) user. It adds a passkey to the current account:

try {
  final passkey = await supabase.auth.registerPasskey(authenticator);
  print('Registered passkey ${passkey.id}');
} on AuthException catch (e) {
  print(e);
}
Signing in with a passkey
try {
  final res = await supabase.auth.signInWithPasskey(authenticator);
  print('Signed in as ${res.user?.email}');
} on AuthException catch (e) {
  print(e);
}

For custom flows there is also a two-step API under the supabase.auth.passkey namespace (startRegistration/verifyRegistration and startAuthentication/verifyAuthentication), as well as methods to list, rename and delete passkeys.

For the full guide and configuration steps, see the Supabase passkeys documentation.

Contributing

We're happy to receive your pull requests. For major changes, please open an issue first to discuss what you would like to change.

Support

If you have questions, feedback or wishes regarding features, please reach out to us via [email](mailto:contact@corbado.com) or join our passkeys community on Slack.

License

BSD-3-clause

카테고리

의존성

의존성 목록 8 개

소스 저장소

이 패키지를 사용하는 프로젝트