auth0_web_flutter
웹 플러터 앱에 Auth0를 쉽게 통합할 수 있는 플러터 패키지입니다.
saitejavankayala/auth0_flutter_web open-source repository details.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Flutter package to easily integrate Auth0 into Web Flutter apps.
| Android | iOS | MacOS | Web | Linux | Windows |
|---|---|---|---|---|---|
| x | x | x | ✔️ | x | x |
Auth0FlutterWeb is supported for web only.
Integrate Auth0 authentication across web Flutter apps. Registration and Login users, logout users, and identify currently authenticated users across web.
To use this plugin, add auth0_flutter2 as a dependency in your pubspec.yaml file.
Add the Auth0 Javascript SPA (Single Page Application) library.
<script src="https://cdn.auth0.com/js/auth0-spa-js/1.13/auth0-spa-js.production.js"></script>
Import the library.
import 'package:auth0_flutter2/auth0_flutter2.dart';
Then initialize the Auth0FlutterWeb class in your main() method.
void main() {
// add the auth0domain
Auth0FlutterWeb.auth0Domain = "AUTH0_DOMAIN";
//add the auth0ClientID
Auth0FlutterWeb.auth0ClientId = "AUTH0_CLIENT_ID";
// add the redirect uri
Auth0FlutterWeb.redirectUri = "YOUR_APP_REDIRECT_URI";
// Set the URL strategy for our web app. Removes
// trailing hash(#) to ensure login callbacks
// will be captured and processed correctly.
Auth0FlutterWeb.setPathUrlStrategy();
runApp(const MyApp());
}
Then invoke the class methods anywhere in your Dart code.
Auth0FlutterWeb.instance.userAuthentication(screenHint: "signup");
Auth0FlutterWeb.instance.userAuthentication(screenHint: "login");
Auth0FlutterWeb.instance.logoutUser();
Auth0FlutterWeb.instance.getLoggedInUserId();
의존성 목록 7 개
^1.6.0{"sdk":"flutter"}^1.9.1^2.2.4^0.2.0{"sdk":"flutter"}^2.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗