Is it possible to just do `const { jwt } = await p...
# prisma-whats-new
r
Is it possible to just do
const { jwt } = await props.authenticate ...
i
How you get the response is different from the actual payload
r
can you expand that a little bit?
i
The payload won’t change based on how you grab the data. You can do Promises, then/catch, async/await, regular callbacks…. How you go about getting the data doesn’t change the actual data
But I would say, it’s rather odd to see
Object
in the payload. Typically happens when the response payload isn’t being parsed to JSON correctly, from what I know. (I’ve been a developer for less than 2 years, so keep that in mind.)