erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.69k stars 283 forks source link

How to judge whether Authorization has expired? Is there an API? #168

Open lys623 opened 1 year ago

lys623 commented 1 year ago

when authorization is expired, ws fail to connect,How to update automatically and get informed?

await client.Connect()

when authorization is expired,The above code is stuck, and it doesn't throw an error, so hopefully it will throw an error

lys623 commented 1 year ago

There are apis to automatically update Authorization value?