Include domain in client name
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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,
|
||||
};
|
||||
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -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';
|
||||
|
||||
Reference in New Issue
Block a user