
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@d11/dream-auth-login-provider
Advanced tools
Provides authentication utilities for integrating user login through the Dream11 SDK.
A React Native library that provides seamless authentication login functionality for Dream11 applications. This library handles OAuth flows, session management, and deep linking for secure user authentication.
npm install @d11/dream-auth-login-provider
yarn add @d11/dream-auth-login-provider
cd ios && pod install
Info.plist: <key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>com.dream11.app</string>
<key>CFBundleURLSchemes</key>
<array>
<string>dream11</string>
</array>
</dict>
</array>
AppDelegate.swift:import DreamAuthLoginProvider
func application(_ application: UIApplication, handleOpen url: URL) -> Bool {
if url.scheme == "dream11" {
DreamAuthLoginProviderInitializer.handleRedirect(
uri: url.absoluteString, refreshToken: nil,
baseUrl: "https://auth.dream11.com", providerApp: "dream11")
return true
}
return RCTLinkingManager.application(application, open: url, options: [:])
}
AndroidManifest.xml:<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:scheme="dream11" />
</intent-filter>
</activity>
MainActivity.kt:
import com.dreamauthloginprovider.DreamAuthLoginProviderInitializer
override fun onNewIntent(intent: Intent?) {
super.onNewIntent(intent)
intent?.data?.let { uri ->
if (uri.scheme == "dream11") {
DreamAuthLoginProviderInitializer.handleRedirect(
context = this,
uri = uri.toString(),
refreshToken = "",
baseUrl = ""
)
}
}
}
dream11 schemeThe library handles various authentication states:
LOGGED_IN - User successfully authenticatedCONSENT_NOT_PROVIDED - User denied consentLOGIN_DISMISSED - User cancelled the login flowSOMETHING_WENT_WRONG - An error occurred during authenticationThe library is built with a modular architecture supports both React Native architecture:
git clone https://github.com/dream11/dream-auth-login-provider.git
cd dream-auth-login-provider
yarn
# Start Metro bundler
yarn example start
# Run on iOS
yarn example ios
# Run on Android
yarn example android
yarn typecheck - TypeScript type checkingyarn lint - ESLint lintingyarn test - Run unit testsyarn clean - Clean build artifactsyarn prepare - Build the libraryyarn release - Release new versionWe welcome contributions! Please see our Contributing Guide for details on:
MIT License - see LICENSE file for details.
For support and questions:
Made with ❤️ by the Dream11 team
FAQs
Provides authentication utilities for integrating user login through the Dream11 SDK.
The npm package @d11/dream-auth-login-provider receives a total of 112 weekly downloads. As such, @d11/dream-auth-login-provider popularity was classified as not popular.
We found that @d11/dream-auth-login-provider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.