Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add refresh token and error to user's external auth page#13380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 7 commits intomainfromstevenmasley/external_auth_error
May 28, 2024
Merged
Changes from1 commit
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
PrevPrevious commit
NextNext commit
Add styled error
  • Loading branch information
@Emyrk
Emyrk committedMay 28, 2024
commit855e8b8c2e96a57a84e659267f7ef72d79cc15ae
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
import { useTheme } from "@emotion/react";
import CachedIcon from "@mui/icons-material/Cached";
import LoadingButton from "@mui/lab/LoadingButton";
import Badge from "@mui/material/Badge";
Expand DownExpand Up@@ -114,6 +115,7 @@ const ExternalAuthRow: FC<ExternalAuthRowProps> = ({
onUnlinkExternalAuth,
onValidateExternalAuth,
}) => {
const theme = useTheme();
const name = app.display_name || app.id || app.type;
const authURL = "/external-auth/" + app.id;

Expand DownExpand Up@@ -161,8 +163,16 @@ const ExternalAuthRow: FC<ExternalAuthRowProps> = ({
<TableRow key={app.id}>
<TableCell>
<AvatarData title={name} avatar={avatar} />
{/* TODO: Style this! */}
{link?.validate_error}
{link?.validate_error && (
<>
<span
css={{ paddingLeft: "1em", color: theme.palette.error.light }}
>
Error:{" "}
</span>
{link?.validate_error}
</>
)}
</TableCell>
<TableCell css={{ textAlign: "right" }}>
<LoadingButton
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp