fixed get auth and search token/code

This commit is contained in:
Kostya
2023-12-14 20:21:40 +03:00
parent 63dacbf122
commit 5b4ab39655

View File

@@ -75,10 +75,11 @@ export default {
}, },
created() { created() {
this.username = GetCookie('SpUserName') this.username = GetCookie('SpUserName')
this.balance = GetCurrentMoney( const authcode = GetCookie('AUTHTOKEN')
{ authToken: GetCookie('AUTHTOKEN') }, const searchtoken = GetCookie('SearchToken')
{ serachToken: GetCookie('SearchToken') } console.log('AUTHCODE AND SEARCH TOKEN - ', authcode, searchtoken)
)
this.balance = GetCurrentMoney(authcode, searchtoken)
console.log('Created Hook - Profile page = balance = ', this.balance) console.log('Created Hook - Profile page = balance = ', this.balance)
this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}` this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}`
}, },