Skip to content
Merged
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 .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# Adapter packages (React Native)
/packages/google-signin/ @IronTony
/packages/apple-signin/ @IronTony

# Examples
/examples/expo/ @IronTony
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ body:
options:
- "@forward-software/react-auth"
- "@forward-software/react-auth-google"
- "@forward-software/react-auth-apple"
validations:
required: true

Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ body:
options:
- "@forward-software/react-auth"
- "@forward-software/react-auth-google"
- "@forward-software/react-auth-apple"
validations:
required: true

Expand Down
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ updates:
- "/"
- "/lib"
- "/packages/google-signin"
- "/packages/apple-signin"
exclude-paths:
- "examples/*"
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
package:
- "@forward-software/react-auth"
- "@forward-software/react-auth-google"
- "@forward-software/react-auth-apple"
fail-fast: false

runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -52,6 +53,7 @@ jobs:
package:
- "@forward-software/react-auth"
- "@forward-software/react-auth-google"
- "@forward-software/react-auth-apple"
fail-fast: false

runs-on: "ubuntu-latest"
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"lib":"2.0.4","packages/google-signin":"1.1.2"}
{"lib":"2.0.4","packages/google-signin":"1.1.2","packages/apple-signin":"1.0.0"}
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This is a monorepo for **React Auth**, a library that simplifies authentication
| --- | --- | --- | --- |
| Core library | `lib/` | `@forward-software/react-auth` | Framework-agnostic auth primitives: `AuthClient` interface, `createAuth()`, `AuthProvider`, `useAuthClient` hook, `EnhancedAuthClient` wrapper with event emitter and state management |
| Google Sign-In adapter | `packages/google-signin/` | `@forward-software/react-auth-google` | Ready-made `AuthClient` implementation and `GoogleSignInButton` for Web (Google Identity Services) and React Native (Expo native module) |
| Apple Sign-In adapter | `packages/apple-signin/` | `@forward-software/react-auth-apple` | Ready-made `AuthClient` implementation and `AppleSignInButton` for Web (Sign in with Apple JS) and React Native (Expo native module) |

### Examples

Expand Down
26 changes: 22 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ This monorepo contains the following packages:
| Package | Version | Description |
| --- | --- | --- |
| [`@forward-software/react-auth`](./lib) | [![npm](https://img.shields.io/npm/v/@forward-software/react-auth)](https://npmjs.com/package/@forward-software/react-auth) | Core library — provides `AuthClient`, `AuthProvider`, `createAuth`, and `useAuthClient` for integrating authentication flows in any React or React Native app |
| [`@forward-software/react-auth-google`](./packages/google-signin) | [![npm](https://img.shields.io/npm/v/@forward-software/react-auth-google)](https://npmjs.com/package/@forward-software/react-auth-google) | Google Sign-In adapter — ready-made `AuthClient` implementation and drop-in `GoogleSignInButton` for Web and React Native (Expo) |
| [`@forward-software/react-auth-google`](./packages/google-signin) | [![npm](https://img.shields.io/npm/v/@forward-software/react-auth-google)](https://npmjs.com/package/@forward-software/react-auth-google) | Google Sign-In adapter -- ready-made `AuthClient` implementation and drop-in `GoogleSignInButton` for Web and React Native (Expo) |
| [`@forward-software/react-auth-apple`](./packages/apple-signin) | [![npm](https://img.shields.io/npm/v/@forward-software/react-auth-apple)](https://npmjs.com/package/@forward-software/react-auth-apple) | Apple Sign-In adapter -- ready-made `AuthClient` implementation and drop-in `AppleSignInButton` for Web and React Native (Expo) |

## Examples

Expand Down Expand Up @@ -74,7 +75,7 @@ function LoginButton() {

For more details, see the [`@forward-software/react-auth` README](./lib/README.md).

> **Looking for a ready-made integration?** The [`@forward-software/react-auth-google`](./packages/google-signin) package provides a drop-in Google Sign-In adapter with a pre-built `AuthClient` and `GoogleSignInButton` for both Web and React Native. See its [README](./packages/google-signin/README.md) for setup instructions.
> **Looking for a ready-made integration?** The [`@forward-software/react-auth-google`](./packages/google-signin) package provides a drop-in Google Sign-In adapter and the [`@forward-software/react-auth-apple`](./packages/apple-signin) package provides Apple Sign-In -- both with a pre-built `AuthClient` and sign-in button for Web and React Native. See their READMEs for setup instructions.
## Project Structure

Expand All @@ -84,8 +85,25 @@ This project is a monorepo managed with [pnpm workspaces](https://pnpm.io/worksp
react-auth/
├── lib/ # @forward-software/react-auth (core library)
├── packages/
│ └── google-signin/ # @forward-software/react-auth-google (Google Sign-In adapter)
└── examples/ # Example applications (base, reqres, refresh-token, expo)
│ ├── google-signin/ # @forward-software/react-auth-google (Google Sign-In adapter)
│ │ ├── src/
│ │ │ ├── web/ # Web implementation (Google Identity Services)
│ │ │ └── native/ # React Native implementation (Expo module)
│ │ ├── android/ # Android native module
│ │ ├── ios/ # iOS native module
│ │ └── test/ # Unit tests
│ └── apple-signin/ # @forward-software/react-auth-apple (Apple Sign-In adapter)
│ ├── src/
│ │ ├── web/ # Web implementation (Sign in with Apple JS)
│ │ └── native/ # React Native implementation (Expo module)
│ ├── android/ # Android native module
│ ├── ios/ # iOS native module
│ └── test/ # Unit tests
└── examples/ # Example applications
├── base/ # Basic React example
├── reqres/ # ReqRes API example
├── refresh-token/ # Token refresh example
└── expo/ # React Native (Expo) example
```

For a detailed breakdown of the source layout and architecture, see the [Contributing Guide](CONTRIBUTING.md#project-architecture).
Expand Down
1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Security updates are provided for the latest major version of each package:
| --- | --- |
| `@forward-software/react-auth` | `2.x` |
| `@forward-software/react-auth-google` | `1.x` |
| `@forward-software/react-auth-apple` | `1.x` |

## Scope

Expand Down
Loading
Loading