507
507
fmt .Sprintf ("GOTRUE_SMTP_HOST=%s" , utils .Config .Auth .Email .Smtp .Host ),
508
508
fmt .Sprintf ("GOTRUE_SMTP_PORT=%d" , utils .Config .Auth .Email .Smtp .Port ),
509
509
fmt .Sprintf ("GOTRUE_SMTP_USER=%s" , utils .Config .Auth .Email .Smtp .User ),
510
- fmt .Sprintf ("GOTRUE_SMTP_PASS=%s" , utils .Config .Auth .Email .Smtp .Pass ),
510
+ fmt .Sprintf ("GOTRUE_SMTP_PASS=%s" , utils .Config .Auth .Email .Smtp .Pass . Value ),
511
511
fmt .Sprintf ("GOTRUE_SMTP_ADMIN_EMAIL=%s" , utils .Config .Auth .Email .Smtp .AdminEmail ),
512
512
fmt .Sprintf ("GOTRUE_SMTP_SENDER_NAME=%s" , utils .Config .Auth .Email .Smtp .SenderName ),
513
513
)
@@ -550,37 +550,37 @@ EOF
550
550
env ,
551
551
"GOTRUE_SMS_PROVIDER=twilio" ,
552
552
"GOTRUE_SMS_TWILIO_ACCOUNT_SID=" + utils .Config .Auth .Sms .Twilio .AccountSid ,
553
- "GOTRUE_SMS_TWILIO_AUTH_TOKEN=" + utils .Config .Auth .Sms .Twilio .AuthToken ,
553
+ "GOTRUE_SMS_TWILIO_AUTH_TOKEN=" + utils .Config .Auth .Sms .Twilio .AuthToken . Value ,
554
554
"GOTRUE_SMS_TWILIO_MESSAGE_SERVICE_SID=" + utils .Config .Auth .Sms .Twilio .MessageServiceSid ,
555
555
)
556
556
case utils .Config .Auth .Sms .TwilioVerify .Enabled :
557
557
env = append (
558
558
env ,
559
559
"GOTRUE_SMS_PROVIDER=twilio_verify" ,
560
560
"GOTRUE_SMS_TWILIO_VERIFY_ACCOUNT_SID=" + utils .Config .Auth .Sms .TwilioVerify .AccountSid ,
561
- "GOTRUE_SMS_TWILIO_VERIFY_AUTH_TOKEN=" + utils .Config .Auth .Sms .TwilioVerify .AuthToken ,
561
+ "GOTRUE_SMS_TWILIO_VERIFY_AUTH_TOKEN=" + utils .Config .Auth .Sms .TwilioVerify .AuthToken . Value ,
562
562
"GOTRUE_SMS_TWILIO_VERIFY_MESSAGE_SERVICE_SID=" + utils .Config .Auth .Sms .TwilioVerify .MessageServiceSid ,
563
563
)
564
564
case utils .Config .Auth .Sms .Messagebird .Enabled :
565
565
env = append (
566
566
env ,
567
567
"GOTRUE_SMS_PROVIDER=messagebird" ,
568
- "GOTRUE_SMS_MESSAGEBIRD_ACCESS_KEY=" + utils .Config .Auth .Sms .Messagebird .AccessKey ,
568
+ "GOTRUE_SMS_MESSAGEBIRD_ACCESS_KEY=" + utils .Config .Auth .Sms .Messagebird .AccessKey . Value ,
569
569
"GOTRUE_SMS_MESSAGEBIRD_ORIGINATOR=" + utils .Config .Auth .Sms .Messagebird .Originator ,
570
570
)
571
571
case utils .Config .Auth .Sms .Textlocal .Enabled :
572
572
env = append (
573
573
env ,
574
574
"GOTRUE_SMS_PROVIDER=textlocal" ,
575
- "GOTRUE_SMS_TEXTLOCAL_API_KEY=" + utils .Config .Auth .Sms .Textlocal .ApiKey ,
575
+ "GOTRUE_SMS_TEXTLOCAL_API_KEY=" + utils .Config .Auth .Sms .Textlocal .ApiKey . Value ,
576
576
"GOTRUE_SMS_TEXTLOCAL_SENDER=" + utils .Config .Auth .Sms .Textlocal .Sender ,
577
577
)
578
578
case utils .Config .Auth .Sms .Vonage .Enabled :
579
579
env = append (
580
580
env ,
581
581
"GOTRUE_SMS_PROVIDER=vonage" ,
582
582
"GOTRUE_SMS_VONAGE_API_KEY=" + utils .Config .Auth .Sms .Vonage .ApiKey ,
583
- "GOTRUE_SMS_VONAGE_API_SECRET=" + utils .Config .Auth .Sms .Vonage .ApiSecret ,
583
+ "GOTRUE_SMS_VONAGE_API_SECRET=" + utils .Config .Auth .Sms .Vonage .ApiSecret . Value ,
584
584
"GOTRUE_SMS_VONAGE_FROM=" + utils .Config .Auth .Sms .Vonage .From ,
585
585
)
586
586
}
@@ -590,39 +590,39 @@ EOF
590
590
env ,
591
591
"GOTRUE_HOOK_MFA_VERIFICATION_ATTEMPT_ENABLED=true" ,
592
592
"GOTRUE_HOOK_MFA_VERIFICATION_ATTEMPT_URI=" + hook .URI ,
593
- "GOTRUE_HOOK_MFA_VERIFICATION_ATTEMPT_SECRETS=" + hook .Secrets ,
593
+ "GOTRUE_HOOK_MFA_VERIFICATION_ATTEMPT_SECRETS=" + hook .Secrets . Value ,
594
594
)
595
595
}
596
596
if hook := utils .Config .Auth .Hook .PasswordVerificationAttempt ; hook != nil && hook .Enabled {
597
597
env = append (
598
598
env ,
599
599
"GOTRUE_HOOK_PASSWORD_VERIFICATION_ATTEMPT_ENABLED=true" ,
600
600
"GOTRUE_HOOK_PASSWORD_VERIFICATION_ATTEMPT_URI=" + hook .URI ,
601
- "GOTRUE_HOOK_PASSWORD_VERIFICATION_ATTEMPT_SECRETS=" + hook .Secrets ,
601
+ "GOTRUE_HOOK_PASSWORD_VERIFICATION_ATTEMPT_SECRETS=" + hook .Secrets . Value ,
602
602
)
603
603
}
604
604
if hook := utils .Config .Auth .Hook .CustomAccessToken ; hook != nil && hook .Enabled {
605
605
env = append (
606
606
env ,
607
607
"GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_ENABLED=true" ,
608
608
"GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_URI=" + hook .URI ,
609
- "GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_SECRETS=" + hook .Secrets ,
609
+ "GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_SECRETS=" + hook .Secrets . Value ,
610
610
)
611
611
}
612
612
if hook := utils .Config .Auth .Hook .SendSMS ; hook != nil && hook .Enabled {
613
613
env = append (
614
614
env ,
615
615
"GOTRUE_HOOK_SEND_SMS_ENABLED=true" ,
616
616
"GOTRUE_HOOK_SEND_SMS_URI=" + hook .URI ,
617
- "GOTRUE_HOOK_SEND_SMS_SECRETS=" + hook .Secrets ,
617
+ "GOTRUE_HOOK_SEND_SMS_SECRETS=" + hook .Secrets . Value ,
618
618
)
619
619
}
620
620
if hook := utils .Config .Auth .Hook .SendEmail ; hook != nil && hook .Enabled {
621
621
env = append (
622
622
env ,
623
623
"GOTRUE_HOOK_SEND_EMAIL_ENABLED=true" ,
624
624
"GOTRUE_HOOK_SEND_EMAIL_URI=" + hook .URI ,
625
- "GOTRUE_HOOK_SEND_EMAIL_SECRETS=" + hook .Secrets ,
625
+ "GOTRUE_HOOK_SEND_EMAIL_SECRETS=" + hook .Secrets . Value ,
626
626
)
627
627
}
628
628
640
640
env ,
641
641
fmt .Sprintf ("GOTRUE_EXTERNAL_%s_ENABLED=%v" , strings .ToUpper (name ), config .Enabled ),
642
642
fmt .Sprintf ("GOTRUE_EXTERNAL_%s_CLIENT_ID=%s" , strings .ToUpper (name ), config .ClientId ),
643
- fmt .Sprintf ("GOTRUE_EXTERNAL_%s_SECRET=%s" , strings .ToUpper (name ), config .Secret ),
643
+ fmt .Sprintf ("GOTRUE_EXTERNAL_%s_SECRET=%s" , strings .ToUpper (name ), config .Secret . Value ),
644
644
fmt .Sprintf ("GOTRUE_EXTERNAL_%s_SKIP_NONCE_CHECK=%t" , strings .ToUpper (name ), config .SkipNonceCheck ),
645
645
)
646
646
0 commit comments