const { result, error } = await unkey.identities.get({ externalId: "user_123",});if (error) { // handle potential network or bad request error // a link to our docs will be in the `error.docs` field console.error(error.message); return;}console.log(result);
const { result, error } = await unkey.identities.get({ externalId: "user_123",});if (error) { // handle potential network or bad request error // a link to our docs will be in the `error.docs` field console.error(error.message); return;}console.log(result);
Attach ratelimits to this identity.When verifying keys, you can specify which limits you want to use and all keys attached to this identity, will share the limits.
const { result, error } = await unkey.identities.get({ externalId: "user_123",});if (error) { // handle potential network or bad request error // a link to our docs will be in the `error.docs` field console.error(error.message); return;}console.log(result);