checkCode
Kullanıcı aktivasyon kodunu kontrol etme.
Bu yöntem, kullanıcının kodunu kontrol eder. Doğruysa true (doğru kod) veya false (yanlış kod) döner.
AuthProvider.checkCode(
marker,
userIdentifier,
eventIdentifier,
code
);
Minimal örnek
const value = await AuthProvider.checkCode('email', 'example@oneentry.cloud', 'auth', 'WTGC9E');
Parametreler şeması
Şema
marker:* string
Yetkilendirme sağlayıcısının metin tanımlayıcısı.
örnek: email
userIdentifier:* string
Kullanıcı nesnesinin metin tanımlayıcısı (kullanıcı girişi)
örnek: example@oneentry.cloud
eventIdentifier:* string
Kodun oluşturulduğu olay nesnesinin metin tanımlayıcısı
örnek: auth
code:* string
Hizmet kodu
örnek: WTGC9E
Örnek yanıt
true