Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/netlify

src/get-user.js

13 lines · 414 B · JavaScript
import { getUser } from './netlify.js'

/**
 * Load a slim authenticated Netlify user profile (read-only).
 * @param {Object} [input]
 * @returns {Promise<{ id: string, email: string | null, full_name: string | null }>}
 * @example
 * import getUser from 'kody:@kody/netlify/get-user'
 * const user = await getUser()
 */
export default async function getUserEntrypoint(input = {}) {
	return await getUser(input)
}