[#1] getting the calendars from the api
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export default async function getOpenPaasUserId(opaque_token: string) {
|
||||
const response = await fetch(
|
||||
`${process.env.REACT_APP_CALENDAR_BASE_URL}/api/user`,
|
||||
{
|
||||
headers: {
|
||||
Authorization: `Bearer ${opaque_token}`,
|
||||
},
|
||||
}
|
||||
);
|
||||
const user = await response.json();
|
||||
return user;
|
||||
}
|
||||
Reference in New Issue
Block a user