Closed stephwildcode closed 2 years ago
Hello,
I solved the issue with this code :
replace SCC_AUTH_KEY with agServer.signatureKey
// Server code to sign the token
const token = jwt.sign({
username: user.username
}, agServer.signatureKey, { expiresIn: '4 hours' })
-> I don't know why i can't use the SCC_AUTH_KEY variable but it'working !
Have a good day.
Hello,
I'm trying to use authentication with socketcluster.
My environment is : -node 16.16.0 LTS -socketcluster client 16.1.1 + apache cordova + angular 14 -scc-worker with docker desktop for windows -scc-broker with docker desktop for windows -scc-state with docker desktop for windows
I followed the documentation and i put a jsonwebtoken in localstorage with socketcluster.authToken
When i ran the apk, i have this error message :
I've tried to solve the issue for several hours without success.
Can you help me to find what's wrong with this token ?
thanks !