How to Creat Login Function Using TypeScript