fission-codes / fission-server

Apache License 2.0
9 stars 0 forks source link

feat: Login/Link device via email verification code #206

Closed matheus23 closed 9 months ago

matheus23 commented 9 months ago

New route /api/v0/account/:did/link that returns a similar result as creating a new account (account info + some UCANs), but instead works with an existing account (identified via its DID from the route). Also:

codecov[bot] commented 9 months ago

Codecov Report

Attention: 145 lines in your changes are missing coverage. Please review.

Comparison is base (86e3ac7) 19.63% compared to head (d1a201f) 19.32%.

:exclamation: Current head d1a201f differs from pull request most recent head 3d6cb5b. Consider uploading reports for the commit 3d6cb5b to get more accurate results

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/fission-codes/fission-server/pull/206/graphs/tree.svg?width=650&height=150&src=pr&token=GO3TTZLDO0&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes)](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes) ```diff @@ Coverage Diff @@ ## main #206 +/- ## ========================================== - Coverage 19.63% 19.32% -0.31% ========================================== Files 70 71 +1 Lines 2822 2929 +107 Branches 1729 1802 +73 ========================================== + Hits 554 566 +12 - Misses 1548 1593 +45 - Partials 720 770 +50 ``` | [Files](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes) | Coverage Δ | | |---|---|---| | [fission-core/src/common.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1jb3JlL3NyYy9jb21tb24ucnM=) | `0.00% <ø> (ø)` | | | [fission-core/src/lib.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1jb3JlL3NyYy9saWIucnM=) | `100.00% <ø> (ø)` | | | [fission-server/src/settings.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL3NldHRpbmdzLnJz) | `43.33% <ø> (ø)` | | | [fission-cli/src/settings.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1jbGkvc3JjL3NldHRpbmdzLnJz) | `0.00% <0.00%> (ø)` | | | [fission-core/src/capabilities/fission.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1jb3JlL3NyYy9jYXBhYmlsaXRpZXMvZmlzc2lvbi5ycw==) | `60.00% <66.66%> (+0.62%)` | :arrow_up: | | [fission-server/src/router.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL3JvdXRlci5ycw==) | `16.21% <0.00%> (-0.46%)` | :arrow_down: | | [fission-server/src/error.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL2Vycm9yLnJz) | `37.68% <46.15%> (+1.96%)` | :arrow_up: | | [fission-server/src/models/account.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL21vZGVscy9hY2NvdW50LnJz) | `45.94% <42.10%> (+1.94%)` | :arrow_up: | | [fission-server/src/routes/account.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL3JvdXRlcy9hY2NvdW50LnJz) | `23.97% <20.68%> (-0.82%)` | :arrow_down: | | [fission-core/src/serde\_value\_source.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1jb3JlL3NyYy9zZXJkZV92YWx1ZV9zb3VyY2UucnM=) | `0.00% <0.00%> (ø)` | | | ... and [2 more](https://app.codecov.io/gh/fission-codes/fission-server/pull/206?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes) | | ... and [7 files with indirect coverage changes](https://app.codecov.io/gh/fission-codes/fission-server/pull/206/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes)