|
1 | 1 | package config |
2 | 2 |
|
3 | | -<<<<<<< HEAD |
4 | 3 | type JWT struct { |
5 | | -======= |
6 | | -type JWT2 struct { |
7 | | ->>>>>>> 5e9742aa797eb14dbea4e096bd32c5aa8abce663 |
8 | 4 | AccessSecret string `yaml:"accessSecret"` |
9 | 5 | RefreshSecret string `yaml:"refreshSecret"` |
10 | 6 | RefreshOptions RefreshOptions `yaml:"refreshOptions"` |
@@ -57,12 +53,6 @@ type Role struct { |
57 | 53 | Public bool `yaml:"public,omitempty"` |
58 | 54 | } |
59 | 55 |
|
60 | | -<<<<<<< HEAD |
61 | | -<<<<<<< Updated upstream |
62 | | -type User struct { |
63 | | - Email string `yaml:"email"` |
64 | | - Password string `yaml:"password"` |
65 | | -======= |
66 | 56 | type EmailProvider struct { |
67 | 57 | Enabled bool `yaml:"enabled"` |
68 | 58 | JWT JWT `yaml:"jwt"` |
@@ -93,42 +83,6 @@ type Webhooks struct { |
93 | 83 | MagicLink MagicLinkWebhooks `yaml:"magicLink"` |
94 | 84 | } |
95 | 85 |
|
96 | | -type EmailWebhooks struct { |
97 | | - RecoveryPasswordEvent Webhook `yaml:"recoveryPasswordEvent"` |
98 | | - RegisterEvent Webhook `yaml:"registerEvent"` |
99 | | ->>>>>>> Stashed changes |
100 | | -======= |
101 | | -type EmailProvider struct { |
102 | | - Enabled bool `yaml:"enabled"` |
103 | | - JWT JWT2 `yaml:"jwt"` |
104 | | - Webhooks EmailWebhooks `yaml:"webhooks"` |
105 | | ->>>>>>> 5e9742aa797eb14dbea4e096bd32c5aa8abce663 |
106 | | -} |
107 | | - |
108 | | -type MagicLinkProvider struct { |
109 | | - Enabled bool `yaml:"enabled"` |
110 | | - Webhooks MagicLinkWebhooks `yaml:"webhooks"` |
111 | | -} |
112 | | - |
113 | | -type Providers struct { |
114 | | - Email EmailProvider `yaml:"email"` |
115 | | - MagicLink MagicLinkProvider `yaml:"magicLink"` |
116 | | -} |
117 | | - |
118 | | -type Config struct { |
119 | | - Database Database `yaml:"database"` |
120 | | - API API `yaml:"api"` |
121 | | - Admin Admin `yaml:"admin"` |
122 | | - Roles []Role `yaml:"roles,mapstructure"` |
123 | | - Providers Providers `yaml:"providers"` |
124 | | - Webhooks Webhooks `yaml:"webhooks"` |
125 | | -} |
126 | | - |
127 | | -type Webhooks struct { |
128 | | - Email EmailWebhooks `yaml:"email"` |
129 | | - MagicLink MagicLinkWebhooks `yaml:"magicLink"` |
130 | | -} |
131 | | - |
132 | 86 | type EmailWebhooks struct { |
133 | 87 | RecoveryPasswordEvent Webhook `yaml:"recoveryPasswordEvent"` |
134 | 88 | RegisterEvent Webhook `yaml:"registerEvent"` |
|
0 commit comments