@okta/okta-auth-js/myaccount / Exports
- BaseTransaction
- EmailChallengeTransaction
- EmailStatusTransaction
- EmailTransaction
- PasswordTransaction
- PhoneTransaction
- ProfileSchemaTransaction
- ProfileTransaction
- AddEmailPayload
- AddPhonePayload
- ChallengePhonePayload
- EmailProfile
- EnrollPasswordPayload
- IAPIFunction
- MyAccountRequestOptions
- PhoneProfile
- UpdatePasswordPayload
- UpdateProfilePayload
- VerificationPayload
- addEmail
- addPhone
- createOktaAuthMyAccount
- deleteEmail
- deletePassword
- deletePhone
- enrollPassword
- getEmail
- getEmailChallenge
- getEmails
- getPassword
- getPhone
- getPhones
- getProfile
- getProfileSchema
- mixinMyAccount
- sendEmailChallenge
- sendPhoneChallenge
- updatePassword
- updateProfile
- verifyEmailChallenge
- verifyPhoneChallenge
Ƭ AddEmailPayload: Object
Name | Type |
---|---|
profile |
{ email : string } |
profile.email |
string |
role |
EmailRole |
sendEmail |
boolean |
Ƭ AddPhonePayload: Object
Name | Type |
---|---|
method |
string |
profile |
{ phoneNumber : string } |
profile.phoneNumber |
string |
sendCode |
boolean |
Ƭ ChallengePhonePayload: Object
Name | Type |
---|---|
method |
string |
Ƭ EmailProfile: Object
Name | Type |
---|---|
email |
string |
Ƭ EnrollPasswordPayload: Object
Name | Type |
---|---|
profile |
{ password : string } |
profile.password |
string |
Ƭ IAPIFunction<T
>: (oktaAuth
: OktaAuthOAuthInterface
, options?
: MyAccountRequestOptions
) => Promise
<T
>
Name |
---|
T |
▸ (oktaAuth
, options?
): Promise
<T
>
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface |
options? |
MyAccountRequestOptions |
Promise
<T
>
Ƭ MyAccountRequestOptions: Object
Name | Type |
---|---|
accessToken? |
string |
challengeId? |
string |
emailId? |
string |
id? |
string |
payload? |
AddEmailPayload | AddPhonePayload | ChallengePhonePayload | VerificationPayload | UpdateProfilePayload |
Ƭ PhoneProfile: Object
Name | Type |
---|---|
profile |
{ phoneNumber : string } |
profile.phoneNumber |
string |
Ƭ UpdatePasswordPayload: Object
Name | Type |
---|---|
profile |
{ currentPassword? : string ; password : string } |
profile.currentPassword? |
string |
profile.password |
string |
Ƭ UpdateProfilePayload: Object
Name | Type |
---|---|
profile |
{ [property: string] : any ; email? : string ; firstName? : string ; lastName? : string ; login? : string } |
profile.email? |
string |
profile.firstName? |
string |
profile.lastName? |
string |
profile.login? |
string |
Ƭ VerificationPayload: Object
Name | Type |
---|---|
verificationCode |
string |
▸ addEmail(oktaAuth
, options?
): Promise
<EmailTransaction
>
@scope: okta.myAccount.email.manage
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<EmailTransaction
>
▸ addPhone(oktaAuth
, options?
): Promise
<PhoneTransaction
>
@scope: okta.myAccount.phone.manage
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<PhoneTransaction
>
▸ createOktaAuthMyAccount<M
, S
, O
, TM
>(StorageManagerConstructor
, OptionsConstructor
, TransactionManager
): OktaAuthConstructor
<OktaAuthMyAccountInterface
<M
, S
, O
>>
Name | Type |
---|---|
M |
extends PKCETransactionMeta <M > = PKCETransactionMeta |
S |
extends OAuthStorageManagerInterface <M , S > = OAuthStorageManagerInterface <M > |
O |
extends OktaAuthCoreOptions <O > = OktaAuthCoreOptions |
TM |
extends TransactionManagerInterface = TransactionManagerInterface |
Name | Type |
---|---|
StorageManagerConstructor |
StorageManagerConstructor <S > |
OptionsConstructor |
OktaAuthOptionsConstructor <O > |
TransactionManager |
TransactionManagerConstructor <TM > |
OktaAuthConstructor
<OktaAuthMyAccountInterface
<M
, S
, O
>>
▸ deleteEmail(oktaAuth
, options?
): Promise
<BaseTransaction
>
@scope: okta.myAccount.email.manage
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<BaseTransaction
>
▸ deletePassword(oktaAuth
, options?
): Promise
<BaseTransaction
>
@scope: okta.myAccount.password.manage
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<BaseTransaction
>
▸ deletePhone(oktaAuth
, options?
): Promise
<BaseTransaction
>
@scope: okta.myAccount.phone.manage
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<BaseTransaction
>
▸ enrollPassword(oktaAuth
, options?
): Promise
<PasswordTransaction
>
@scope: okta.myAccount.password.manage
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<PasswordTransaction
>
▸ getEmail(oktaAuth
, options?
): Promise
<EmailTransaction
>
@scope: okta.myAccount.email.read
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<EmailTransaction
>
▸ getEmailChallenge(oktaAuth
, options?
): Promise
<EmailChallengeTransaction
>
@scope: okta.myAccount.email.read
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<EmailChallengeTransaction
>
▸ getEmails(oktaAuth
, options?
): Promise
<EmailTransaction
[]>
@scope: okta.myAccount.email.read
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<EmailTransaction
[]>
▸ getPassword(oktaAuth
, options?
): Promise
<PasswordTransaction
>
@scope: okta.myAccount.password.read
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<PasswordTransaction
>
▸ getPhone(oktaAuth
, options?
): Promise
<PhoneTransaction
>
@scope: okta.myAccount.phone.read
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<PhoneTransaction
>
▸ getPhones(oktaAuth
, options?
): Promise
<PhoneTransaction
[]>
@scope: okta.myAccount.phone.read
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<PhoneTransaction
[]>
▸ getProfile(oktaAuth
, options?
): Promise
<ProfileTransaction
>
@scope: okta.myAccount.profile.read
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<ProfileTransaction
>
▸ getProfileSchema(oktaAuth
, options?
): Promise
<ProfileSchemaTransaction
>
@scope: okta.myAccount.profile.read
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<ProfileSchemaTransaction
>
▸ mixinMyAccount<M
, S
, O
, TBase
>(Base
): TBase
& OktaAuthConstructor
<OktaAuthMyAccountInterface
<M
, S
, O
>>
Name | Type |
---|---|
M |
extends OAuthTransactionMeta <M > = PKCETransactionMeta |
S |
extends OAuthStorageManagerInterface <M , S > = OAuthStorageManagerInterface <M > |
O |
extends OktaAuthOAuthOptions <O > = OktaAuthOAuthOptions |
TBase |
extends OktaAuthConstructor <OktaAuthOAuthInterface <M , S , O , TransactionManagerInterface >, TBase > = OktaAuthConstructor <OktaAuthOAuthInterface <M , S , O , TransactionManagerInterface >> |
Name | Type |
---|---|
Base |
TBase |
TBase
& OktaAuthConstructor
<OktaAuthMyAccountInterface
<M
, S
, O
>>
▸ sendEmailChallenge(oktaAuth
, options?
): Promise
<EmailChallengeTransaction
>
@scope: okta.myAccount.email.read
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<EmailChallengeTransaction
>
▸ sendPhoneChallenge(oktaAuth
, options?
): Promise
<BaseTransaction
>
@scope: okta.myAccount.phone.manage
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<BaseTransaction
>
▸ updatePassword(oktaAuth
, options?
): Promise
<PasswordTransaction
>
@scope: okta.myAccount.password.manage
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<PasswordTransaction
>
▸ updateProfile(oktaAuth
, options?
): Promise
<ProfileTransaction
>
@scope: okta.myAccount.profile.manage
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<ProfileTransaction
>
▸ verifyEmailChallenge(oktaAuth
, options?
): Promise
<BaseTransaction
>
@scope: okta.myAccount.email.manage
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<BaseTransaction
>
▸ verifyPhoneChallenge(oktaAuth
, options?
): Promise
<BaseTransaction
>
@scope: okta.myAccount.phone.manage
Name | Type |
---|---|
oktaAuth |
OktaAuthOAuthInterface <PKCETransactionMeta , OAuthStorageManagerInterface <PKCETransactionMeta >, OktaAuthOAuthOptions , TransactionManagerInterface > |
options? |
MyAccountRequestOptions |
Promise
<BaseTransaction
>