|
@@ -1,5 +1,5 @@
|
|
|
import { fetchTtwitterRequestToken, fetchTwitterLogin, fetchTwitterShortUrl, fetchAllMessageInfo, fetchReadTaskAllMsg, getDiscordUserInfo, fetchGetTwitterNftPostPre, fetchPublish, fetchGetAllUnReadNotices } from '@/logic/background/fetch/twitter.js'
|
|
|
-import { LANDING_PAGE, LANDING_PAGE_MID, setChromeStorage, setChromeCookie, getChromeCookie, getChromeStorage, removeChromeCookie, LANDING_PAGE_JUMP_INFO } from '@/uilts/chromeExtension.js'
|
|
|
+import { LANDING_PAGE, WEBSITE_USER_INFO, LANDING_PAGE_MID, setChromeStorage, setChromeCookie, getChromeCookie, getChromeStorage, removeChromeCookie, LANDING_PAGE_JUMP_INFO } from '@/uilts/chromeExtension.js'
|
|
|
import { guid } from '@/uilts/help.js'
|
|
|
import { discordAuthRedirectUri } from '@/http/configAPI'
|
|
|
import { setContentMessage } from '@/logic/background/help.js'
|
|
@@ -88,6 +88,7 @@ export function twitterPinLoginCode(sender, code) {
|
|
|
fetchTwitterLogin(authToken, consumerKey, code, receivedIds).then(res => {
|
|
|
if (res.code == 0) {
|
|
|
setChromeStorage({ userInfo: JSON.stringify(res.data) })
|
|
|
+ setChromeCookie(WEBSITE_USER_INFO, res.data)
|
|
|
|
|
|
sendActivetabMessage({
|
|
|
actionType: 'BG_LOGIN_SET_USERINFO_CB'
|