Skip to content

Commit 9a3f169

Browse files
committed
Merge branch 'develop'
2 parents 4c2c623 + c43a4da commit 9a3f169

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/serverFunctions/siret.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22

33
import axios from "axios"
44
import { SiretAPI } from "../types/Siret"
5-
import { auth } from "../services/auth/auth"
65

76
export const getSiretInfo = async (siret: string) => {
8-
const session = await auth()
9-
if (!session || !session.user) {
10-
return "Utilisateur non authentifié"
11-
}
12-
137
try {
148
const result = await axios.get<SiretAPI>(`https://api.insee.fr/api-sirene/3.11/siret/${siret}`, {
159
headers: { "X-INSEE-Api-Key-Integration": process.env.INSEE_API_KEY },

0 commit comments

Comments
 (0)