Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions A0Auth0.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/auth0/react-native-auth0.git', :tag => "v#{s.version}" }

s.source_files = 'ios/**/*.{h,m,mm,swift}'
s.resource_bundles = { 'A0Auth0_privacy' => 'ios/PrivacyInfo.xcprivacy' }
s.requires_arc = true

s.dependency 'Auth0', '3.0.1'
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Our SDK requires a minimum iOS deployment target of 14.0. In your project's ios/
platform :ios, '14.0'
```

The iOS pod ships a privacy manifest (`PrivacyInfo.xcprivacy`) that declares no tracking, no required-reason API usage, and a user identifier collected only for app functionality. Xcode includes it automatically when you generate a privacy report, so you don't have to describe this SDK's behavior yourself. You are still responsible for reviewing that report and for keeping your App Store Connect privacy answers accurate for your app as a whole, including the data this SDK collects.

### Installation

First install the native library module:
Expand Down
2 changes: 1 addition & 1 deletion example/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ hermesEnabled=true
# Use this property to enable edge-to-edge display support.
# This allows your app to draw behind system bars for an immersive UI.
# Note: Only works with ReactActivity and should not be used with custom Activity.
edgeToEdgeEnabled=false
edgeToEdgeEnabled=true
Comment thread
coderabbitai[bot] marked this conversation as resolved.
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2243,7 +2243,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
A0Auth0: 2c9e96b05a7422552027fd336a45ece0bd8d8545
A0Auth0: 6168f5be0fc061ba9858d95c481d5338627e2238
Auth0: c94e637a662b4e07aeb1e6e5acf3f8787e451e1c
FBLazyVector: b3e7ad108f0d882e30445c5527d774e3fd432f3d
hermes-engine: 4ba8c4848d46c6a441e09d1c62f883ba69bc5b76
Expand Down
11 changes: 7 additions & 4 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { StatusBar } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import RootNavigator from './navigation/RootNavigator';

/**
Expand All @@ -12,10 +13,12 @@ import RootNavigator from './navigation/RootNavigator';
*/
function App(): React.JSX.Element {
return (
<NavigationContainer>
<StatusBar barStyle="dark-content" />
<RootNavigator />
</NavigationContainer>
<SafeAreaProvider>
<NavigationContainer>
<StatusBar barStyle="dark-content" />
<RootNavigator />
</NavigationContainer>
</SafeAreaProvider>
);
}

Expand Down
3 changes: 2 additions & 1 deletion example/src/screens/SelectionScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// example/src/screens/SelectionScreen.tsx

import React from 'react';
import { View, Text, StyleSheet, SafeAreaView } from 'react-native';
import { View, Text, StyleSheet } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { useNavigation } from '@react-navigation/native';
import type { StackNavigationProp } from '@react-navigation/stack';
import Button from '../components/Button';
Expand Down
3 changes: 2 additions & 1 deletion example/src/screens/class-based/ClassApiTests.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react';
import { SafeAreaView, ScrollView, StyleSheet, Text, View } from 'react-native';
import { ScrollView, StyleSheet, Text, View } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { RouteProp } from '@react-navigation/native';
import auth0 from '../../api/auth0';
import Button from '../../components/Button';
Expand Down
2 changes: 1 addition & 1 deletion example/src/screens/class-based/ClassLogin.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, { useState } from 'react';
import {
SafeAreaView,
ScrollView,
View,
Text,
StyleSheet,
Alert,
Platform,
} from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { useNavigation } from '@react-navigation/native';
import type { StackNavigationProp } from '@react-navigation/stack';
import {
Expand Down
2 changes: 1 addition & 1 deletion example/src/screens/class-based/ClassProfile.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, { Component } from 'react';
import {
SafeAreaView,
ScrollView,
View,
StyleSheet,
Text,
Alert,
Linking,
} from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { RouteProp, NavigationProp } from '@react-navigation/native';
import { jwtDecode } from 'jwt-decode';
import auth0 from '../../api/auth0';
Expand Down
2 changes: 1 addition & 1 deletion example/src/screens/hooks/CredentialsScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, { useState } from 'react';
import {
SafeAreaView,
ScrollView,
StyleSheet,
View,
Text,
Linking,
Alert,
} from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import {
useAuth0,
Credentials,
Expand Down
2 changes: 1 addition & 1 deletion example/src/screens/hooks/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState } from 'react';
import {
SafeAreaView,
ScrollView,
View,
Text,
Expand All @@ -11,6 +10,7 @@ import {
Linking,
Platform,
} from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import {
useAuth0,
WebAuthError,
Expand Down
3 changes: 2 additions & 1 deletion example/src/screens/hooks/More.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react';
import { SafeAreaView, ScrollView, StyleSheet, View, Text } from 'react-native';
import { ScrollView, StyleSheet, View, Text } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { useAuth0 } from 'react-native-auth0';
import Button from '../../components/Button';
import Header from '../../components/Header';
Expand Down
2 changes: 1 addition & 1 deletion example/src/screens/hooks/MyAccountScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState } from 'react';
import {
SafeAreaView,
ScrollView,
View,
Text,
Expand All @@ -9,6 +8,7 @@ import {
Platform,
TextInput,
} from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import {
useAuth0,
MyAccountError,
Expand Down
9 changes: 2 additions & 7 deletions example/src/screens/hooks/Profile.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import React, { useState } from 'react';
import {
SafeAreaView,
ScrollView,
View,
StyleSheet,
Alert,
} from 'react-native';
import { ScrollView, View, StyleSheet, Alert } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { useAuth0 } from 'react-native-auth0';
import Button from '../../components/Button';
import Header from '../../components/Header';
Expand Down
27 changes: 27 additions & 0 deletions ios/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
Comment thread
coderabbitai[bot] marked this conversation as resolved.
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
</dict>
</array>
</dict>
</plist>
2 changes: 1 addition & 1 deletion src/plugin/withAuth0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export const addAuth0AppDelegateCode = (
if (!isSwift) {
// Throw error for non-Swift files, since we're only supporting Swift app delegates (RN 78+)
throw new Error(
'This plugin only supports expo 53 or greater. If you are using older version 4.x'
'This plugin requires a Swift AppDelegate, which means Expo SDK 55 or greater. On older Expo versions, use react-native-auth0 5.x or earlier.'
);
}

Expand Down
3 changes: 2 additions & 1 deletion src/specs/NativeA0Auth0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export interface Spec extends TurboModule {
clientId: string,
domain: string,
localAuthenticationOptions:
{ [key: string]: string | Int32 | boolean } | undefined,
| { [key: string]: string | Int32 | boolean }
| undefined,
Comment thread
coderabbitai[bot] marked this conversation as resolved.
useDPoP: boolean | undefined,
maxRetries: Int32,
credentialsManagerStorageKey: string | undefined
Expand Down
Loading