0.0.32 • Published 5 years ago

rc-login v0.0.32

Weekly downloads
12
License
-
Repository
-
Last release
5 years ago

##rcUI package

A login component with jwt. uses rc-utils auth service to call the backend (look at rc-utils documentation) cg

Install

npm i @realcommerce/rc-login --save

Api

import { RcLoginModule } from '@realcommerce/rc-login'; 


@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    RcLoginModule
    ...
  ],
  
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

components

  • rc-login

    ###Example
<lib-rc-login [usePassword]="false" 
              [useOtp]="true" 
              [returnUrl]="yourReturnUrl">
</lib-rc-login>
  • rc-otp

Example

<lib-rc-otp [isInSendOtp]="isInSendOtp"
            [phoneNumber]="phoneNumber"
            [username]="username"
            [recaptchaResponse]="recaptchaResponse"
            [returnUrl]="'/'" >
</lib-rc-otp>

Author

Yacov Barboi