feat: add email scope to OAuth configuration and update documentation

This commit is contained in:
Miroslav Šedivý
2026-09-24 00:13:28 +02:00
parent 3f3ae10fb9
commit 6bc8350213
3 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ func (Member) Init(cmd *cobra.Command) error {
return err
}
cmd.PersistentFlags().StringSlice("member.oauth.scopes", []string{"openid", "profile"}, "OAuth 2.0 scopes")
cmd.PersistentFlags().StringSlice("member.oauth.scopes", []string{"openid", "profile", "email"}, "OAuth 2.0 scopes")
if err := viper.BindPFlag("member.oauth.scopes", cmd.PersistentFlags().Lookup("member.oauth.scopes")); err != nil {
return err
}