`com.mongodb.stitch.android.core.auth.internal` 是 MongoDB Stitch(现已被 MongoDB Realm 替代)Android SDK
com.mongodb.stitch.android.core.auth.internal是 MongoDB Stitch现已被 MongoDB Realm 替代Android SDK 中的一个内部internal包用于封装与身份认证Authentication相关的底层实现逻辑。该包不属于公共 API其类和方法被标记为Internal或package-private不建议、也不应被应用开发者直接调用或依赖。 关键说明✅ 用途支撑StitchAuth、StitchUser、凭证管理如 Anonymous、JWT、Custom Auth、会话刷新、OAuth 流程等上层认证功能的内部机制如AuthManagerImpl、AuthSessionProvider、AuthRequestHandler等。❌ 非公开包路径含internal且官方文档、Javadoc 和 Gradle 依赖中均明确声明其为内部实现可能在任意版本中变更、移除或重构无向后兼容性保证。⚠️ 迁移提醒MongoDB Stitch 已于 2021 年正式退役EOL全部功能由MongoDB Realm现整合进MongoDB Atlas App Services承接。Android 新项目应使用io.realm:realm-android-sdk或最新版mongodb-realm基于 Kotlin/Coroutines modern auth flows。✅ 正确替代方式推荐// 使用 Realm SDK 进行认证示例匿名登录valappApp.Builder(your-app-id).build()app.loginAsync(Credentials.anonymous()){result-if(result.isSuccess){valuserresult.get()Log.i(Auth,Logged in as${user.id})}else{Log.e(Auth,Login failed,result.error())}}Package com.mongodb.stitch.android.core.auth.internalWas this page helpful?YesNoSkip navigation linksOverview Package Class Tree Deprecated Index Help SEARCH:Package com.mongodb.stitch.android.core.auth.internalThis internal package contains the Android SDK’s implementation of the authentication components of a Stitch client.Class Summary Class Description StitchAuthImpl The Android specific authentication component for clients that acts as a StitchAuth and an StitchAuthRequestClient. StitchUserFactoryImpl StitchUserImplSkip navigation linksOverview Package Class Tree Deprecated Index Help