Add sign in flow using magic links

This commit is contained in:
Stanko K.R.
2025-10-07 19:33:51 +02:00
parent d0215e9fd2
commit 5cef4ffeb0
51 changed files with 908 additions and 268 deletions
+5 -1
View File
@@ -1,7 +1,11 @@
class Identity < UntenantedRecord
# This is used to instantiate an Identity-like object from the `identity_token` without hitting
# the untenanted database. It is intended to be used with caching/etagging methods.
Mock = Struct.new(:id, :updated_at)
Mock = Struct.new(:id, :updated_at) do
def identity
Identity.find_signed(id)
end
end
has_many :memberships, dependent: :destroy
end