Update authentication methods and UI components, remove redundant file
This commit accomplishes a few modifications including the elimination of `use-toast.tsx` due to redundancy. The authentication methods in `personal-accounts-server-actions.ts` were refactored to improve service integration and data handling. Additionally, UI components were updated for better readability and clarity. Cascading deletion was enabled in the `schema.sql` file for 'invited_by' reference.
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
import { useContext } from 'react';
|
||||
|
||||
import { CsrfTokenContext } from '@kit/contexts/csrf.context';
|
||||
|
||||
/**
|
||||
* @description Retrieves the current CSRF token in the CsrfTokenContext context
|
||||
* If not found, it will return an empty string. If required, the API will throw an error
|
||||
*/
|
||||
function useCsrfToken() {
|
||||
const token = useContext(CsrfTokenContext);
|
||||
|
||||
return token ?? '';
|
||||
}
|
||||
|
||||
export default useCsrfToken;
|
||||
Reference in New Issue
Block a user