Learning to love yourself, as well as others
The more a person grows to love themselves, the more they value and are attracted to pure good, the 'clear, beautiful light' kind of purity, the kind of purity that has little to do with prudishness or prissiness, but has to do with 'what is good, noble, beautiful'...

When you learn to love yourself, you come to deeply value clarity and purity and wholeness, in yourself and in others.
This love has to come from learning to love and accept Divine Love~
the love that tries to build from the self, is self-based, paper-thin, superficial, inflated and full of lip-service to self-love ~ bragging, conceited talk.
(Which, by the way, doesn't help towards reaching real, true self-love.
It seems to do momentary, ephemeral good, and that's about it. It's one of the first, elementary tools to get there~ but not the main tool and not the most effective.)

In my own experience, it's best to keep a compliment to yourself, repeating it inside, till it sinks deep, where truth lives.
Once it's TRUE to you, it will rest quietly and serenely in you, a real support. It will come out only in belief, a belief that is REAL!
A confident person who also loves herself/himself shines that through when they show they have a loving opinion of themselves, as well as others. ~
That good opinion of self will show through like a gleam through the veil~ not blatant talk, not spotlighting.
It shines steadily and quietly through all that they do.

There is an acceptance of others, yet a refusal to be placed under anyone's flawed spell.
You are no longer a victim of any sort, free to stand firmly where you are, as you are, in all your imperfections and strengths~ free from the fragmenting pain of looking for your own wholeness in others, and in their opinions of you.

You are content to be you, improving; you, beautiful!

In this state of all-over-the-place loving, you don't need compliments from others to feel loving towards yourself and wonderful about yourself, because that love is deeply intact, already~ the self-appreciation is there, and the love is too general and generous and
genuine to be arrogant or bragging.

The confidence comes from Divine Love, just as the love has. It shines out from you, radiates through you, and you feel good about yourself, about God, about others, about the world around you.

You dwell on good things, noble things, beautiful things~ you love.

You simply love.