FreedomBen / libmalan

Simple TypeScript utility methods for accessing the Malan authentication service
MIT License
0 stars 1 forks source link

users.ts response types are inaccurate #15

Open cainlevy opened 2 years ago

cainlevy commented 2 years ago

The response types in users.ts indicate that all data attributes will be available in the response, e.g.:

const response = await getUser(....);
console.log(response.email);

This is not currently the case. The data attributes are instead available in response.data (itself typed as any) and response.body.data (also any).

FreedomBen commented 2 years ago

Different than #21 although the titles sound similar, they're different.