mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Begin work on WebAuthn
This commit is contained in:
@@ -99,6 +99,12 @@ App::init()
|
||||
}
|
||||
break;
|
||||
|
||||
case 'webauthn':
|
||||
if (($auths['webauthn'] ?? true) === false) {
|
||||
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Webauthn authentication is disabled for this project');
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Unsupported authentication route');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user