diff --git a/backend-services/friend-service/src/Middleware/Auth.ts b/backend-services/friend-service/src/Middleware/Auth.ts
new file mode 100644
index 0000000000000000000000000000000000000000..69502a414814bdf39a3784664a166e6ceab94426
--- /dev/null
+++ b/backend-services/friend-service/src/Middleware/Auth.ts
@@ -0,0 +1,27 @@
+import jwt, { Secret, JwtPayload } from 'jsonwebtoken';
+import { Request, Response, NextFunction } from 'express';
+
+export const SECRET_KEY: Secret = 'abcdefg12345';
+
+export interface CustomJWTRequest extends Request {
+ token?: string | JwtPayload;
+}
+
+export const authorize = async (req: Request, res: Response, next: NextFunction) => {
+ try {
+    const authHeader = req.headers.authorization;
+    const token = authHeader?.split(" ")[1];
+
+   if (!token) {
+     throw new Error();
+   }
+
+   const decoded = jwt.verify(token, SECRET_KEY);
+   (req as CustomJWTRequest).token = decoded;
+
+   next();
+ } catch (err) {
+  console.log(err)
+   res.status(401).send('Please authenticate');
+ }
+};
\ No newline at end of file