You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
[next-auth][debug][get_authorization_url] https://api.twitter.com/oauth/authenticate?oauth_token=wiUIKgAAAAABNYQ9AAABeAjsI-0
[next-auth][debug][profile_data] {
id: 1367661442061639700,
id_str: '1000000000000000000',
name: 'kyoungd',
screen_name: 'kyoungd1',
location: '',
description: '',
url: null,
entities: { description: { urls: [] } },
protected: false,
followers_count: 0,
friends_count: 0,
listed_count: 0,
created_at: 'Fri Mar 05 02:21:32 +0000 2021',
favourites_count: 0,
utc_offset: null,
time_zone: null,
geo_enabled: false,
verified: false,
statuses_count: 0,
lang: null,
contributors_enabled: false,
is_translator: false,
is_translation_enabled: false,
profile_background_color: 'F5F8FA',
profile_background_image_url: null,
profile_background_image_url_https: null,
profile_background_tile: false,
profile_image_url: 'http://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png',
profile_image_url_https: 'https://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png',
profile_link_color: '1DA1F2',
profile_sidebar_border_color: 'C0DEED',
profile_sidebar_fill_color: 'DDEEF6',
profile_text_color: '333333',
profile_use_background_image: true,
has_extended_profile: true,
default_profile: true,
default_profile_image: true,
following: false,
follow_request_sent: false,
notifications: false,
translator_type: 'none',
suspended: false,
needs_phone_verification: false,
email: 'one-email@email.com'
}
[next-auth][debug][oauth_callback_response] {
profile: {
id: '1000000000000000000',
name: 'kyoungd',
email: 'one-email@email.com',
image: 'https://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png'
},
account: {
provider: 'twitter',
type: 'oauth',
id: '1000000000000000000',
accessToken: 'aaaaaaaaa-access-token--aaaaaaaa',
refreshToken: 'OwKNMXSZqnK9vOLcRBOVjZQAemfDLCxFV5QFP8DAzW9aj',
results: [Object: null prototype] {
user_id: '1000000000000000000',
screen_name: 'kyoungd1'
}
},
OAuthProfile: {
id: 1367661442061639700,
id_str: '1000000000000000000',
name: 'kyoungd',
screen_name: 'kyoungd1',
location: '',
description: '',
url: null,
entities: { description: [Object] },
protected: false,
followers_count: 0,
friends_count: 0,
listed_count: 0,
created_at: 'Fri Mar 05 02:21:32 +0000 2021',
favourites_count: 0,
utc_offset: null,
time_zone: null,
geo_enabled: false,
verified: false,
statuses_count: 0,
lang: null,
contributors_enabled: false,
is_translator: false,
is_translation_enabled: false,
profile_background_color: 'F5F8FA',
profile_background_image_url: null,
profile_background_image_url_https: null,
profile_background_tile: false,
profile_image_url: 'http://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png',
profile_image_url_https: 'https://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png',
profile_link_color: '1DA1F2',
profile_sidebar_border_color: 'C0DEED',
profile_sidebar_fill_color: 'DDEEF6',
profile_text_color: '333333',
profile_use_background_image: true,
has_extended_profile: true,
default_profile: true,
default_profile_image: true,
following: false,
follow_request_sent: false,
notifications: false,
translator_type: 'none',
suspended: false,
needs_phone_verification: false,
email: 'one-email@email.com'
}
}
[next-auth][debug][typeorm_get_user_by_provider_account_id] twitter 1000000000000000000
[next-auth][debug][typeorm_get_user_by_provider_account_id] twitter 1000000000000000000
jwt.user ---------------------------
User {
id: 1,
name: 'kyoungd',
email: 'one-email@email.com',
emailVerified: null,
image: 'https://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png',
createdAt: 2021-03-06T07:17:54.231Z,
updatedAt: 2021-03-06T07:17:54.231Z
}
jwt.account ---------------------------
{
provider: 'twitter',
type: 'oauth',
id: '1000000000000000000',
accessToken: 'aaaaaaaaa-access-token--aaaaaaaa',
refreshToken: 'OwKNMXSZqnK9vOLcRBOVjZQAemfDLCxFV5QFP8DAzW9aj',
results: [Object: null prototype] {
user_id: '1000000000000000000',
screen_name: 'kyoungd1'
}
}
jwt.user ---------------------------
http://localhost:1337/auth/twitter/callback?access_token=aaaaaaaaa-access-token--aaaaaaaa
[next-auth][error][oauth_callback_handler_error]
https://next-auth.js.org/errors#oauth_callback_handler_error TypeError: Cannot read property 'id' of undefined
at Object.jwt (webpack-internal:///./pages/api/auth/[...nextauth].ts:46:30)
at runMicrotasks ()
It is authenticating, but the strapi backend seems to be failing. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions