Login Methods
When you need to use the authentication service of Cloud Development, you need to configure the login methods you want to use. Currently, Cloud Development supports various login methods such as custom login, WeChat Official Account Platform, WeChat Open Platform login, and more.
View Login Methods
You can use the following command to list and view the login methods configured for the environment, along with their related status.
tcb env login list
You will see output similar to the following
Create Login Methods
You can use the following command to create login methods:
tcb env login create
You need to select the platform to configure, the status of the login method, and the corresponding AppId and AppSecret. The login method should be set to enabled. AppId and AppSecret are not validated when adding the method; they are only verified when a request is made. Therefore, ensure the AppId and AppSecret you provide are valid.
Update Login Methods
You can also use tcb env login update
to modify configured login methods, such as toggling the enabled status or updating the AppId and AppSecret.