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.

Set doorkeeper tokens expiration date to 1 month (#12081)

Damian Legawiec1db821339443
diff --git a/api/config/initializers/doorkeeper.rb b/api/config/initializers/doorkeeper.rb
index a12643b3b4..11ff2afa69 100644
--- a/api/config/initializers/doorkeeper.rb
+++ b/api/config/initializers/doorkeeper.rb
@@ -45,4 +45,6 @@ Doorkeeper.configure do
# using Bcrupt for token secrets is currently not supported by Doorkeeper
hash_token_secrets fallback: :plain
hash_application_secrets fallback: :plain, using: '::Doorkeeper::SecretStoring::BCrypt'
+
+ access_token_expires_in 1.month
end