Skip to content

Commit

Permalink
feat: Add can_auth_with_magic_links to ClientCapabilities type
Browse files Browse the repository at this point in the history
Since we can now Onboard by Magic Link the ClientCapabilities now
contains `can_auth_with_magic_links` prop

Related PR: cozy/cozy-stack#3872
  • Loading branch information
Ldoppea committed Apr 20, 2023
1 parent ef7486f commit 28fe220
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/cozy-client/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ import { QueryDefinition } from './queries/dsl'
/**
* @typedef {object} ClientCapabilities
* @property {boolean} [can_auth_with_oidc] - Whether OIDC login is possible with this Cozy
* @property {boolean} [can_auth_with_password] - Whether password login is possible with this Cozy
* @property {boolean} [can_auth_with_password] - Whether password login is possible with this Cozy
* @property {boolean} [can_auth_with_magic_links] - Whether magic-link login is possible with this Cozy
* @property {boolean} [file_versioning] - Whether file versioning is active on this Cozy
* @property {boolean} [flat_subdomains] - Whether the stack has been configured to use flat subdomains
* @description Read more about client capabilities here https://docs.cozy.io/en/cozy-stack/settings/#get-settingscapabilities.
Expand Down
6 changes: 5 additions & 1 deletion packages/cozy-client/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,13 @@ export type ClientCapabilities = {
*/
can_auth_with_oidc?: boolean;
/**
* - Whether password login is possible with this Cozy
* - Whether password login is possible with this Cozy
*/
can_auth_with_password?: boolean;
/**
* - Whether magic-link login is possible with this Cozy
*/
can_auth_with_magic_links?: boolean;
/**
* - Whether file versioning is active on this Cozy
*/
Expand Down

0 comments on commit 28fe220

Please sign in to comment.