Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Update authentication.mdx

Damian Legawiec2d05b0cd5a91
diff --git a/docs/developer/customization/authentication.mdx b/docs/developer/customization/authentication.mdx
index 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.