v1.0.3
uaepass_api
인증 API(로그인, 로그아웃, 사용자 프로필 가져오기)용 Flutter UAE PASS 패키지。
11좋아요 6230일 다운로드150Pub 점수
AndroidiOS
uaepass_api flutter 패키지
{"sdk":"flutter"}^6.2.6^1.2.1^0.3.0^6.0.0{"sdk":"flutter"}^3.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Un-official UAE PASS Flutter package for authentication capability.
uaepass_api: ^1.0.3
flutter pub get
import 'package:uaepass_api/uaepass_api.dart';
UaePassAPI uaePassAPI =UaePassAPI(
clientId: "<clientId>",
redirectUri: "<redirectUri>",
clientSecrete: "<clientSecrete>",
appScheme: "<Your App Scheme>",
language: "en",
isProduction: false);
String? code = await uaePassAPI.signIn(context);
String? token = await uaePassAPI.getAccessToken(code);
String? token = await uaePassAPI.getUserProfile(token);
await uaePassAPI.logout(context);
<key>LSApplicationQueriesSchemes</key>
<array>
<string>uaepass</string>
<string>uaepassqa</string>
<string>uaepassdev</string>
<string>uaepassstg</string>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>You App URL Scheme here</string>
<key>CFBundleURLSchemes</key>
<array>
<string>You App URL Scheme here</string>
</array>
</dict>
</array>
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTask"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
.....
</activity>
<intent-filter >
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="success"
android:scheme="<Your App Scheme>" />
<data
android:host="failure"
android:scheme="<Your App Scheme>" />
</intent-filter>
Note: incase kotlin error, add the following to your build.gradle file
buildscript {
// update this line
ext.kotlin_version = '1.7.10'