TutorialsUser authentication

There are 2 built-in ways to authenticate users with ShipAngular: Magic Links & Google Oauth.

Once you've completed at least one of the tutorials above, you send users to the signin/signup page like this:

button-sign-in-docs.component.html

<a
  *ngIf="!user"
  [routerLink]="config.auth.loginUrl"
  class="btn {{ extraStyle ? extraStyle : '' }}"
>
  Login
</a>
The callbackUrl variable in the config.ts file is used across the app to redirect the user at the right place after a successful sign-up/login. It's usually a private page like /dashboard