Previously, not setting apiKey or accessToken to an appropriate value would result in a generic error. After this PR, an accidental empty string (createMollieClient({ apiKey: '' })) gives a distinct error from no value at all (createmollieClient({})).
I suspect this is what happened in #349, and I hope this will prevent some headaches in the future.
Previously, not setting
apiKey
oraccessToken
to an appropriate value would result in a generic error. After this PR, an accidental empty string (createMollieClient({ apiKey: '' })
) gives a distinct error from no value at all (createmollieClient({})
).I suspect this is what happened in #349, and I hope this will prevent some headaches in the future.