UNPKG

@ley0x/better-auth-lastfm

Version:

Last.fm authentication plugin for BetterAuth

24 lines (23 loc) 506 B
// src/client/plugin.ts var lastfmClientPlugin = () => { return { id: "lastfm", $InferServerPlugin: {}, getActions: ($fetch) => { return { signInWithLastfm: async () => { window.location.href = "/api/auth/lastfm/signin"; }, getLastfmSession: async () => { const response = await $fetch("/api/auth/session", { method: "GET" }); return response; } }; } }; }; export { lastfmClientPlugin };