Releases: MetaMask/customauth-react-native-sdk
v0.5.1
Internal package updates
v0.5.0
- Support
allowedBrowsers
login = async (params) => {
try {
const loginDetails = await TorusSdk.triggerLogin({
...params,
allowedBrowsers: [
// Android packages
"com.android.chrome", // Chrome stable
"com.google.android.apps.chrome", // Chrome system
"com.android.chrome.beta", // Chrome beta
]
});
this.setState({ consoleText: `publicAddress: ${loginDetails.publicAddress}` });
} catch (error) {
if(error.message.includes("NoAllowedBrowserFoundException")) {
handleNoAllowedBrowser();
} else {
console.error(error, "login caught");
}
}
};v0.4.1
The following changes have been made in this release:
- Only open CustomTabs for whitelisted browsers (Chrome-like), otherwise open externally.
- Add an option (
preferCustomTabs) that allows default to choose to prefer default browser or custom tabs in case the default browser is not supported in custom tabs.
v0.4.0
The following changes have been made in this release:
- Add support for
getAggregateTorusKeyin android - Update android version to fix aggregate login issues
v0.3.0
Update respective android and ios packages
Please checkout https://github.com/torusresearch/torus-direct-android-sdk/releases and https://github.com/torusresearch/torus-direct-swift-sdk/releases for more updates
v0.2.1
Update deps
v0.2.0
Add support for Android API Level 21.
Notice:
Use the new redirect.html from android sdk
v0.1.5
Updated deps
The following changes have been made in this release:
Use browserRedirectUri as a deep link (with fallback to self hosted script) and make it mandatory
No need to specify proxy contract address for testnet anymore
Update deps + documentation
Upgrade guide:
if your OAuth provider supports deep link
browserRedirectUri must be deep link url .
else
host the redirect.html (with the contents modified by pasting your redirect Uri) at browserRedirectUri and register that hosted url at the
OAuth provider interface as the redirect Uri. (The contents of redirect.html must point to the deep link of your app)
Please reach out to us on Telegram for further clarification
v0.1.4
iOS Specific config changes
v0.1.3
iOS specific fixes for network and browserRedirectUri