mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-09 08:27:36 +08:00
4334e8a58e
Co-authored-by: José Valim <jose.valim@dashbit.co>
15 lines
309 B
JavaScript
15 lines
309 B
JavaScript
import { storeAppAuthToken } from "../lib/app";
|
|
|
|
/**
|
|
* A hook for the app auth page.
|
|
*/
|
|
const AppAuth = {
|
|
mounted() {
|
|
this.handleEvent("persist_app_auth", ({ slug, token }) => {
|
|
storeAppAuthToken(slug, token);
|
|
this.pushEvent("app_auth_persisted");
|
|
});
|
|
},
|
|
};
|
|
|
|
export default AppAuth;
|