react-native-nitro-auth 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/app.plugin.js +7 -5
- package/nitrogen/generated/android/NitroAuth+autolinking.cmake +1 -1
- package/nitrogen/generated/android/NitroAuth+autolinking.gradle +1 -1
- package/nitrogen/generated/android/NitroAuthOnLoad.cpp +1 -1
- package/nitrogen/generated/android/NitroAuthOnLoad.hpp +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/com/auth/NitroAuthOnLoad.kt +1 -1
- package/nitrogen/generated/ios/NitroAuth+autolinking.rb +1 -1
- package/nitrogen/generated/ios/NitroAuth-Swift-Cxx-Bridge.cpp +1 -1
- package/nitrogen/generated/ios/NitroAuth-Swift-Cxx-Bridge.hpp +1 -1
- package/nitrogen/generated/ios/NitroAuth-Swift-Cxx-Umbrella.hpp +1 -1
- package/nitrogen/generated/ios/NitroAuthAutolinking.mm +1 -1
- package/nitrogen/generated/ios/NitroAuthAutolinking.swift +1 -1
- package/nitrogen/generated/shared/c++/AuthProvider.hpp +1 -1
- package/nitrogen/generated/shared/c++/AuthTokens.hpp +1 -1
- package/nitrogen/generated/shared/c++/AuthUser.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridAuthSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridAuthSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridAuthStorageAdapterSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridAuthStorageAdapterSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/LoginOptions.hpp +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,7 +52,8 @@ Add the plugin to `app.json`:
|
|
|
52
52
|
"ios": {
|
|
53
53
|
"googleClientId": "YOUR_IOS_CLIENT_ID.apps.googleusercontent.com",
|
|
54
54
|
"googleServerClientId": "YOUR_WEB_CLIENT_ID.apps.googleusercontent.com",
|
|
55
|
-
"googleUrlScheme": "com.googleusercontent.apps.YOUR_IOS_CLIENT_ID"
|
|
55
|
+
"googleUrlScheme": "com.googleusercontent.apps.YOUR_IOS_CLIENT_ID",
|
|
56
|
+
"appleSignIn": true
|
|
56
57
|
},
|
|
57
58
|
"android": {
|
|
58
59
|
"googleClientId": "YOUR_ANDROID_CLIENT_ID.apps.googleusercontent.com"
|
|
@@ -64,7 +65,9 @@ Add the plugin to `app.json`:
|
|
|
64
65
|
}
|
|
65
66
|
```
|
|
66
67
|
|
|
67
|
-
> [!NOTE]
|
|
68
|
+
> [!NOTE]
|
|
69
|
+
> `appleSignIn` on iOS is `false` by default to avoid unnecessary entitlements. Set it to `true` to enable Apple Sign-In.
|
|
70
|
+
> `googleServerClientId` is only required if you need a `serverAuthCode` for backend integration.
|
|
68
71
|
|
|
69
72
|
### Bare React Native
|
|
70
73
|
|
package/app.plugin.js
CHANGED
|
@@ -36,10 +36,12 @@ const withNitroAuth = (config, props = {}) => {
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
// 2. iOS Entitlements
|
|
39
|
-
|
|
40
|
-
config
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
if (ios.appleSignIn === true) {
|
|
40
|
+
config = withEntitlementsPlist(config, (config) => {
|
|
41
|
+
config.modResults["com.apple.developer.applesignin"] = ["Default"];
|
|
42
|
+
return config;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
43
45
|
|
|
44
46
|
// 3. Android Strings (for Google Client ID)
|
|
45
47
|
config = withStringsXml(config, (config) => {
|
|
@@ -63,5 +65,5 @@ const withNitroAuth = (config, props = {}) => {
|
|
|
63
65
|
module.exports = createRunOncePlugin(
|
|
64
66
|
withNitroAuth,
|
|
65
67
|
"react-native-nitro-auth",
|
|
66
|
-
"0.1.
|
|
68
|
+
"0.1.6"
|
|
67
69
|
);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# NitroAuth+autolinking.cmake
|
|
3
3
|
# This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
# https://github.com/mrousavy/nitro
|
|
5
|
-
# Copyright ©
|
|
5
|
+
# Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
#
|
|
7
7
|
|
|
8
8
|
# This is a CMake file that adds all files generated by Nitrogen
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// NitroAuth+autolinking.gradle
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
/// This is a Gradle file that adds all files generated by Nitrogen
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// NitroAuthOnLoad.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#ifndef BUILDING_NITROAUTH_WITH_GENERATED_CMAKE_PROJECT
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// NitroAuthOnLoad.kt
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
package com.margelo.nitro.com.auth
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# NitroAuth+autolinking.rb
|
|
3
3
|
# This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
# https://github.com/mrousavy/nitro
|
|
5
|
-
# Copyright ©
|
|
5
|
+
# Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
#
|
|
7
7
|
|
|
8
8
|
# This is a Ruby script that adds all files generated by Nitrogen
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// NitroAuth-Swift-Cxx-Bridge.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "NitroAuth-Swift-Cxx-Bridge.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// NitroAuthAutolinking.mm
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#import <Foundation/Foundation.h>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// NitroAuthAutolinking.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
public final class NitroAuthAutolinking {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridAuthStorageAdapterSpec.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridAuthStorageAdapterSpec.hpp"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nitro-auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "High-performance authentication library for React Native with Google Sign-In and Apple Sign-In support, powered by Nitro Modules (JSI)",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|