์ง๋ ์ฌ๋ฆ, ์น๊ตฌ ์ธ ๋ช ์ ๊ผฌ์ ์ ์ฌ์ด๋ ํ๋ก์ ํธ๋ฅผ ์์ํ๋ค.
์ฐ๋ง๊น์ง ๋๋ฆ ์ ๋ง๋ค๋ ๊ฑธ ๊ฐ์์๊ธฐ๋ก ์ ์ธํ๋ค.
๊ทธ๋ ๊ฒ ์ฐ์ด๊ฐ ๋ฐ๋ ๊ฐ์ด ํ๋ฌ๊ฐ๊ณ , ์ด๋๋ง 4์์ด ๋์๋ค.
์ด๋ ๊ฒ ์๊ฐ์ ๋ณด๋ผ ์๋ง์ ์์๊ธฐ์
์ด์ ๋ ์ผ๊ธฐ์ ํจ๊ป ๋์ ํ๋กํ ํ์ ๊ฐ๋ฐ์ด ์ผ๋ง๋ ๊ฑธ๋ฆฌ๋ ์ง ๊ธฐ๋กํด๋ณด๊ธฐ๋ก ํ๋ค.
๊ทผ๋ฌด ์๊ฐ์ ์ง์ค ๋ชปํ๊ณ ์์ฌ์ด ๋ง์์ ๋ฐค ๋ฆ๊ฒ ์์๋ฉฐ ๊ฐ์ธ ํ๋ก์ ํธ ์งํํ๋ ๊ฑด ๋น๋ฐ...
๋ด ์ฃผ๋ณ ์ฌ๋๋ค์ ๋ค ๋ด๊ฐ ๋ถ์ง๋ฐํ๋ค๊ณ ์๊ฐํ๋๋ฐ.. ๊ธฐ๋์ ๋ถ์ํ๊ณ ์ถ๋ค..
amplify docs/authentication/switching authentication flows
amplify docs/authentication/customize UI components
version 1 ๊ธฐ์ค์ผ๋ก ์ค๋ช ๋์ด ์๋ค. ์ ๋ฒ์ ์ ๋ค๋ฅธ docs์์ ํ์ธ ๊ฐ๋ฅ.
์กฐ์ํ๋ ค๋ฉด i18n๋ ์ ์์์ผํ๋ค
import { I18n } from 'aws-amplify';
const authScreenLabels = {
en: {
'Sign Up': 'Create new account',
'Sign Up Account': 'Create a new account'
}
};
I18n.setLanguage('en');
I18n.putVocabularies(authScreenLabels);
amplify docs/authentication/advanced workflows
amplify docs/authentication/auth events
import { Hub, Logger } from 'aws-amplify';
const logger = new Logger('My-Logger');
const listener = (data) => {
switch (data.payload.event) {
case 'signIn':
logger.info('user signed in');
break;
case 'signUp':
logger.info('user signed up');
break;
case 'signOut':
logger.info('user signed out');
break;
case 'signIn_failure':
logger.error('user sign in failed');
break;
case 'tokenRefresh':
logger.info('token refresh succeeded');
break;
case 'tokenRefresh_failure':
logger.error('token refresh failed');
break;
case 'configured':
logger.info('the Auth module is configured');
}
}
Hub.listen('auth', listener);
amplify docs/authentication/remember a device
amplify docs/authentication/delete user
amplify docs/authentication/under the hood
๋ค ์ฝ์์ง๋ง ๋ญ๊ฐ ๋ญ์ง ๋ชจ๋ฅด๊ฒ ๋ ์ด ์ํฉ.. ์ผ๋จ ์ฝ๋๋ฅผ ์จ๋ณธ๋ค