Include domain in client name

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-08-30 00:22:14 +02:00
parent adb6d9f955
commit df5c284ba2
4 changed files with 5 additions and 5 deletions

View File

@ -77,7 +77,7 @@ const getAuthApp = () =>
const createAuthApp = () =>
(dispatch: AppDispatch, getState: () => RootState) => {
const params = {
client_name: sourceCode.displayName,
client_name: `${sourceCode.displayName} (${new URL(window.origin).host})`,
redirect_uris: 'urn:ietf:wg:oauth:2.0:oob',
scopes: getScopes(getState()),
website: sourceCode.homepage,

View File

@ -14,9 +14,9 @@ const createProviderApp = () =>
const scopes = getScopes(getState());
const params = {
client_name: sourceCode.displayName,
client_name: `${sourceCode.displayName} (${new URL(window.origin).host})`,
redirect_uris: `${window.location.origin}/login/external`,
website: sourceCode.homepage,
website: sourceCode.homepage,
scopes,
};

View File

@ -37,7 +37,7 @@ const createExternalApp = (instance: Instance, baseURL?: string) =>
if (getQuirks(instance).noApps) return new Promise(f => f({}));
const params = {
client_name: sourceCode.displayName,
client_name: `${sourceCode.displayName} (${new URL(window.origin).host})`,
redirect_uris: `${window.location.origin}/login/external`,
website: sourceCode.homepage,
scopes: getInstanceScopes(instance),

View File

@ -2,7 +2,7 @@ import clsx from 'clsx';
import React from 'react';
import { defineMessages, useIntl } from 'react-intl';
import { hideStatusMedia, revealStatusMedia, toggleStatusMediaHidden } from 'pl-fe/actions/statuses';
import { hideStatusMedia, revealStatusMedia } from 'pl-fe/actions/statuses';
import { useAppDispatch, useSettings } from 'pl-fe/hooks';
import { Button, HStack, Text } from '../ui';