Skip to content
代码片段 群组 项目
提交 f23c9e9e 编辑于 作者: Eugie Limpin's avatar Eugie Limpin 提交者: Stan Hu
浏览文件

Split Arkose::UserVerificationService into two services

Split Arkose::UserVerificationService into two services as follows:

1. Arkose::TokenVerificationService - responsible for sending a request
to Arkose Labs Verify API endpoint to perform verification of the
session token passed from the frontend
2. Arkose::RecordUserDataService - responsible for persisting the user's
data from Arkose Labs into the database. Currently, data persisted are
`arkose_session` (id), `arkose_risk_band`, `arkose_global_score`,
`arkose_custom_score`.

This update is required so we can reuse the resulting two services to
verify session token received and persist user data during registration.
TokenVerificationService will executed before a user is created and
RecordUserDataService is executed after the user is created.
上级 2dfee66c
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册