mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-10 10:47:20 +00:00
4548f69de8
Provide the minimal components required to support an Outlook add-in: user authentication, JWT retrieval, and API calls to generate meeting links. This implementation is an early alpha: developer experience is limited, documentation is incomplete, and the solution is not white-labeled. It's too early to consider these parts ready to ship into production. As a result, it is currently only available within the DINUM frontend image.
19 lines
414 B
JavaScript
19 lines
414 B
JavaScript
const TRANSIT_TOKEN_KEY = "transitToken";
|
|
|
|
function save(token) {
|
|
sessionStorage.setItem(TRANSIT_TOKEN_KEY, token);
|
|
}
|
|
|
|
function consume() {
|
|
try {
|
|
const token = sessionStorage.getItem(TRANSIT_TOKEN_KEY);
|
|
sessionStorage.removeItem(TRANSIT_TOKEN_KEY);
|
|
return token;
|
|
} catch (err) {
|
|
console.error("Failed to read transit token:", err);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
module.exports = { save, consume };
|