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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- **Social login on Authorizer's login page now resumes the authorization request** ([authorizerdev/authorizer#855](https://github.com/authorizerdev/authorizer/issues/855)). When `/authorize` opens the login page (`/app` or `/app/signup`), `AuthorizerSocialLogin` sends that page's own URL as `redirect_uri`, with the `/authorize` parameters in the query string, instead of the client's callback. The login then comes back to `/app`, which replays the request to `/authorize`. A client whose callback is outside `--allowed-origins` can now use social login, and self-registered clients get the consent screen. Fragment parameters (`response_mode=fragment`) move into the query string.
- **Requires Authorizer 2.4.6 or later**, which accepts its own `/app` as a social-login `redirect_uri`. The hosted login page ships in the same image as the server, so it always meets this.
- **No change anywhere else:** it applies only when the page's origin equals `authorizerURL` and its URL carries both `client_id` and `response_type`. On your own site, `AuthorizerSocialLogin` sends the same `redirect_uri` as before.

## [2.0.0-rc.1] - 2025-12-30

### 🚀 Major Changes
Expand Down
83 changes: 53 additions & 30 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,57 @@
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
// ESLint flat config (ESLint 9). Same intent as the previous .eslintrc-style
// config: eslint:recommended + @typescript-eslint recommended + react
// recommended + react-hooks recommended.
const js = require('@eslint/js');
const globals = require('globals');
const tsPlugin = require('@typescript-eslint/eslint-plugin');
const reactPlugin = require('eslint-plugin-react');
const reactHooksPlugin = require('eslint-plugin-react-hooks');

module.exports = [
{
ignores: [
'dist/**',
'storybook-static/**',
'node_modules/**',
'example/**',
'*.config.js',
'*.config.ts',
],
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
js.configs.recommended,
...tsPlugin.configs['flat/recommended'],
reactPlugin.configs.flat.recommended,
reactHooksPlugin.configs['recommended-latest'],
{
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
...globals.es2021,
...globals.node,
},
},
},
plugins: ['react', 'react-hooks', '@typescript-eslint'],
settings: {
react: {
version: 'detect',
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
// warn, not error: ~40 pre-existing `any`s; typing them properly is a separate change.
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_' },
],
},
},
rules: {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
},
ignorePatterns: ['dist/**', 'node_modules/**', '*.config.js', '*.config.ts'],
};
];
97 changes: 36 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"start": "tsup --watch",
"build": "tsup",
"test": "vitest run",
"lint": "eslint src --ext .ts,.tsx --fix",
"lint": "eslint src --fix",
"type-check": "tsc --noEmit",
"prepare": "tsup",
"size": "size-limit",
Expand Down Expand Up @@ -59,6 +59,7 @@
}
],
"devDependencies": {
"@eslint/js": "^9.39.5",
"@size-limit/preset-small-lib": "^11.1.0",
"@storybook/addon-essentials": "8.4.0",
"@storybook/addon-interactions": "8.4.0",
Expand All @@ -80,6 +81,7 @@
"eslint": "^9.17.0",
"eslint-plugin-react": "^7.37.0",
"eslint-plugin-react-hooks": "^5.1.0",
"globals": "^17.14.0",
"husky": "^9.1.7",
"jsdom": "^26.1.0",
"postcss": "^8.4.49",
Expand Down
Loading
Loading