Data suggest immunity may last at least 6 to 8 months after infection or vaccination. But it is likely that additional vaccinations will be necessary to prime the immune system to fend off the virus, https://www.webmd.com/vaccines/covid-19-vaccine/news/20210414/faq-herd-immunity-and-covid-19
The answer there is at least for six months. This doesn't mean only six months, it means at least six months. Most scientists believe the protection will last substantially longer https://www.newscentermaine.com/article/news/health/coronavirus/vaccine/maine-cdc-get-covid-19-vaccine-even-after-youve-recovered-from-virus-immunity-could-last-at-least-six-months-vaccine-side-effects-not-fatal/97-0e093d9b-a695-4059-aeab-657f1bcdb368
Dear Mohmmed Faris thank you for this interesting technical question. After only 1 year of the corona pandemic it is too early to say which vaccine provides the longest protection against COVID-19. For the current state of research please have a look at the following useful link:
It is found that Nucleoside-modified mRNA vaccine in lipid-encapsulated form that encoded the SARS-CoV-2 RBD is termed as mRNA-RBD. A single immunization of mRNA-RBD elicited both robust neutralizing antibody and cellular responses, and conferred a near-complete protection against wild SARS-CoV-2 infection in the lungs of hACE2 transgenic mice. Noticeably, the high levels of neutralizing antibodies in BALB/c mice induced by mRNA-RBD vaccination were maintained for at least 6.5 months and conferred a long-term notable protection for hACE2 transgenic mice against SARS-CoV-2 infection in a sera transfer study.