Skip to content

Commit b8940e6

Browse files
authored
Merge pull request #15 from fells-code/dev
Chore: fixing some licencse stuff and secruity packages
2 parents a516ee1 + 955c900 commit b8940e6

25 files changed

Lines changed: 833 additions & 216 deletions

LICENSE

Lines changed: 632 additions & 50 deletions
Large diffs are not rendered by default.

eslint.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import reactPlugin from 'eslint-plugin-react';
44
import reactHooks from 'eslint-plugin-react-hooks';
55
import reactRefresh from 'eslint-plugin-react-refresh';
66
import prettier from 'eslint-config-prettier';
7+
import licenseHeader from 'eslint-plugin-license-header';
78

89
export default [
910
js.configs.recommended,
@@ -24,6 +25,7 @@ export default [
2425
react: reactPlugin,
2526
'react-hooks': reactHooks,
2627
'react-refresh': reactRefresh,
28+
'license-header': licenseHeader,
2729
},
2830
settings: {
2931
react: { version: 'detect' },
@@ -34,6 +36,8 @@ export default [
3436
'react-hooks/rules-of-hooks': 'error',
3537
'react-hooks/exhaustive-deps': 'warn',
3638
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
39+
40+
'license-header/header': ['error', './resources/license-header.js'],
3741
},
3842
},
3943
{

package-lock.json

Lines changed: 69 additions & 164 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seamless-auth/react",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "A drop-in authentication solution for modern React applications.",
55
"type": "module",
66
"exports": {
@@ -60,7 +60,7 @@
6060
"@rollup/plugin-alias": "^5.1.1",
6161
"@rollup/plugin-commonjs": "^26.0.1",
6262
"@rollup/plugin-node-resolve": "^15.2.3",
63-
"@rollup/plugin-terser": "^0.4.4",
63+
"@rollup/plugin-terser": "^1.0.0",
6464
"@rollup/plugin-typescript": "^11.1.6",
6565
"@testing-library/jest-dom": "^6.9.1",
6666
"@testing-library/react": "^16.3.0",
@@ -90,6 +90,7 @@
9090
},
9191
"dependencies": {
9292
"@simplewebauthn/browser": "^13.1.0",
93+
"eslint-plugin-license-header": "^0.9.0",
9394
"libphonenumber-js": "^1.12.7",
9495
"ts-node": "^10.9.2"
9596
},

resources/license-header.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/

src/AuthProvider.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { InternalAuthProvider } from '@/context/InternalAuthContext';
28
import React, {
39
createContext,

src/AuthRoutes.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { Navigate, Route, Routes } from 'react-router-dom';
28

39
import Login from '@/views/Login';

src/components/AuthFallbackOptions.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import React from 'react';
28
import { isValidEmail, isValidPhoneNumber } from '../utils';
39

src/components/DeviceNameModal.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import React, { useState } from 'react';
28
import styles from '@/styles/deviceNameModal.module.css';
39

src/components/MagicLinkSent.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import React, { useEffect, useState } from 'react';
28
import { useAuth } from '@/AuthProvider';
39
import { useInternalAuth } from '@/context/InternalAuthContext';

0 commit comments

Comments
 (0)