mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat(server): add invalid oauth callback code error handling (#10603)
close CLOUD-130
This commit is contained in:
@@ -301,6 +301,12 @@ export const USER_FRIENDLY_ERRORS = {
|
||||
type: 'bad_request',
|
||||
message: 'Invalid callback state parameter.',
|
||||
},
|
||||
invalid_oauth_callback_code: {
|
||||
type: 'bad_request',
|
||||
args: { status: 'number', body: 'string' },
|
||||
message: ({ status, body }) =>
|
||||
`Invalid callback code parameter, provider response status: ${status} and body: ${body}.`,
|
||||
},
|
||||
missing_oauth_query_parameter: {
|
||||
type: 'bad_request',
|
||||
args: { name: 'string' },
|
||||
|
||||
Reference in New Issue
Block a user