fission-codes / fission

Fission CLI & server
https://runfission.com/docs
119 stars 14 forks source link

Endpoint user/challenger/recover #636

Open avivash opened 1 year ago

avivash commented 1 year ago

Summary

This PR fixes/implements the following bugs/features

We need an endpoint that returns a challenge directly so the rs-email-service can call /v2/api/user/did/{Username}/{Challenge} on behalf of user to recover their account.

Test plan (required)

We will deploy this branch to staging to allow for easier testing before it's merged

Create a new user and call /v2/api/user/challenge/recover/{Username} with a valid UCAN as the bearer token, expect a challenge to be returned

After Merge