mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-09-11 15:26:19 +03:00
Various SDK related fixes (#1743)
This commit is contained in:
parent
a9b4011d6f
commit
576f15a52d
@ -1,2 +1,2 @@
|
||||
// PUBLIC API
|
||||
export { signInUrl as githubSignInUrl } from '../../auth/helpers/Github'
|
||||
export { signInUrl as githubSignInUrl } from '../../auth/helpers/GitHub'
|
||||
|
@ -12,7 +12,7 @@ export type { CustomizationOptions } from '../../auth/forms/types'
|
||||
export { SignInButton as GoogleSignInButton } from '../../auth/helpers/Google'
|
||||
{=/ isGoogleAuthEnabled =}
|
||||
{=# isGithubAuthEnabled =}
|
||||
export { SignInButton as GithubSignInButton } from '../../auth/helpers/Github'
|
||||
export { SignInButton as GithubSignInButton } from '../../auth/helpers/GitHub'
|
||||
{=/ isGithubAuthEnabled =}
|
||||
export {
|
||||
FormError,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import SendGrid from "@sendgrid/mail";
|
||||
import { getDefaultFromField } from "../helpers.js";
|
||||
import type { SendGridProvider, EmailSender } from from "../types";
|
||||
import type { SendGridProvider, EmailSender } from "../types";
|
||||
|
||||
// PRIVATE API
|
||||
export function initSendGridEmailSender(
|
||||
|
@ -37,7 +37,7 @@ export type EmailSender = {
|
||||
// PRIVATE API
|
||||
export type SentMessageInfo = any;
|
||||
|
||||
// PRIVATE API
|
||||
// PUBLIC API
|
||||
export type Email = {
|
||||
{=# isDefaultFromFieldDefined =}
|
||||
from?: EmailFromField;
|
||||
@ -51,7 +51,7 @@ export type Email = {
|
||||
html: string;
|
||||
};
|
||||
|
||||
// PRIVATE API
|
||||
// PUBLIC API
|
||||
export type EmailFromField = {
|
||||
name?: string;
|
||||
email: string;
|
||||
|
@ -31,3 +31,6 @@ const emailProvider = {
|
||||
|
||||
// PUBLIC API
|
||||
export const emailSender = initEmailSender(emailProvider);
|
||||
|
||||
// PUBLIC API
|
||||
export type { Email, EmailFromField } from "./core/types.js";
|
||||
|
@ -115,10 +115,7 @@ genUtils auth = return $ C.mkTmplFdWithData relUtilsFilePath tmplData
|
||||
|
||||
genIndexTs :: AS.Auth.Auth -> Generator [FileDraft]
|
||||
genIndexTs auth =
|
||||
return $
|
||||
if isEmailAuthEnabled || isLocalAuthEnabled
|
||||
then [C.mkTmplFdWithData [relfile|auth/index.ts|] tmplData]
|
||||
else []
|
||||
return [C.mkTmplFdWithData [relfile|auth/index.ts|] tmplData]
|
||||
where
|
||||
tmplData =
|
||||
object
|
||||
|
Loading…
Reference in New Issue
Block a user