You've already forked lubo_comment_query
							
							WebAuthn初步接好
This commit is contained in:
		
							
								
								
									
										14
									
								
								resources/js/webauthn.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								resources/js/webauthn.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| import {useRegistration, useLogin} from '@web-auth/webauthn-helper' | ||||
|  | ||||
| const webauthn_register = useRegistration({ | ||||
|     actionUrl: "/user/webauthn/", | ||||
|     optionsUrl: "/user/webauthn/options", | ||||
| }) | ||||
|  | ||||
| const webauthn_login = useLogin({ | ||||
|     actionUrl: "/login/webauthn/", | ||||
|     optionsUrl: "/login/webauthn/options", | ||||
| }) | ||||
|  | ||||
| window.webauthn_register = webauthn_register | ||||
| window.webauthn_login = webauthn_login | ||||
		Reference in New Issue
	
	Block a user