Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Update authentication.mdx
Damian Legawiec2d05b0cd5a91
diff --git a/docs/developer/customization/authentication.mdx b/docs/developer/customization/authentication.mdxindex 3d7dee10dc..e9e715f7b3 100644--- a/docs/developer/customization/authentication.mdx+++ b/docs/developer/customization/authentication.mdx@@ -153,3 +153,15 @@ To use your own authentication system with Spree, please follow these steps:```</Accordion></AccordionGroup>++## Admin Panel authentication++By default Spree uses the same model for the admin panel as the storefront. However you can customize it to use a different model.++To do this, you need to add the following code to your `config/initializers/spree.rb` file:++```ruby+Spree.admin_user_class = 'AdminUser'+```++This will tell Spree to use the `AdminUser` model for the admin panel. You will need to create this model in your application and ensure that it includes the necessary Spree fields.