PR to start introducing Linter V2!
Primary improvements from this linter:
Better parsing of MDX (fewer false positives)
More flexibility
And suggested autofixes! (see auto-generated PR comment below for how that works)
Turning this on for only a small portion of the repo at first to avoid an avalanche of alerts, will slowly expand from there.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
It seems that `utils/supabase/server.js` is not a valid JS code.
Specifically it has non-null assertion operator. Remove the operator to
make the code valid.
Add the ability to embed code samples from GitHub into tutorials, so we can have a single source of truth for the source code.
Introduces the <$CodeSample /> syntax, which is a special syntax and not a real React component (see the directives/README.md for why on earth I did it this way -- in this specific case, CodeHike adjusts the MDX syntax tree before it gets compiled, and we need to adjust it ourselves before CodeHike sees it, so we need to get down to the level of manipulating the AST in order to make this work with CodeHike).
Adjusted one of the example tutorials to use this new feature as a test.
* Refactor login_page with a _showSnackBar function
* Add an onError block to onAuthStateChange
Errors get swallowed without this error handler, I noticed it when I had requested too many magic link emails, there was no feedback in the ui, nor in the logs in the console.
* Fix SnackBars not being displayed and add a _showSnackBar function
* Fix code samples for login_page.dart and account_page.dart to reflect fixes in #27104
* Fix isError not being passed for an Unexpected Error in login_page
* Update flutter user management example to a more modern code
* Update the guide to match the new content
* run formatter
* got rid of excess code and minor format fix
---------
Co-authored-by: dshukertjr <dshukertjr@gmail.com>
Fixed typescript bugs in code blocks of with-sveltekit.mdx
Now utilising the `satisfies` keyword instead of explicitly typing the exported functions.
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
* docs: update sveltekit tutorial with new @supabase/ssr package
Related to issue #21851: Sveltekit guide still uses the old packages
* fix comment
---------
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
* rename 'web app tutorials' to 'web app demos'
* replace auth helper with server-side auth
* add more descriptive instructions
* fix small typos
* create a section on supabase utitlies
* update middleware section to include utilities
* update supabase auth ui to include the utilities
* add a login/signup form
* replace supabase auth ui section with a note
* update PCKE section to use /auth/confirm route instead of /auth/callback
* update Account Page section to use utilities and switch locations
* update Sign out section to use utilities
* update bonus section to include utilities
* minor fixes
* Apply suggestions from code review
* format
* format
* fix js examples
---------
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
I noticed in the function to updateProfile the "avatar_url" was not using the passed in "avatarUrl" value.
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
This will make the page load if not logged in and eliminate the following error message:
Error: NG04014: Invalid configuration of route '/': path cannot start with a slash
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>